|
|
@@ -41,11 +41,11 @@
|
|
|
</div>
|
|
|
<div class="cont_body">
|
|
|
<div class="area_input">
|
|
|
- <form id="searchBrandForm" name="searchBrandForm">
|
|
|
+ <form id="searchBrandForm" name="searchBrandForm" onsubmit="return false;">
|
|
|
<fieldset>
|
|
|
<legend>브랜드명 검색</legend>
|
|
|
- <input type="text" id="search" name="search" value="" placeholder="브랜드명 입력" class="search_input" title="검색어 입력" maxlength="100">
|
|
|
- <button type="button" class="sch_btn" onclick="fnSearchBrand();"><span>브랜드 검색</span></button>
|
|
|
+ <input type="text" id="search" name="search" value="" placeholder="브랜드명 입력" class="search_input" title="검색어 입력" maxlength="100" onkeypress="if( window.event.keyCode==13 ){$('#btnSearch').trigger('click');}">
|
|
|
+ <button type="button" class="sch_btn" id="btnSearch"><span>브랜드 검색</span></button>
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
</div>
|
|
|
@@ -101,17 +101,17 @@
|
|
|
fnCreateAllBrandList();
|
|
|
});
|
|
|
|
|
|
- let fnSearchBrand = function(){
|
|
|
+ $('#btnSearch').on('click', function() {
|
|
|
var searchBrand = $("#searchBrandForm").find("input[name=search]").val();
|
|
|
fnCreateAllBrandList(searchBrand);
|
|
|
- }
|
|
|
+ });
|
|
|
|
|
|
let fnCreateAllBrandList = function (brandGroupNm){
|
|
|
let actionUrl = '/display/all/brand/list'
|
|
|
if(!gagajf.isNull(brandGroupNm)){
|
|
|
actionUrl += '?brandGroupNm='+brandGroupNm;
|
|
|
}
|
|
|
-
|
|
|
+ $("#idNodata").hide();
|
|
|
$.getJSON(actionUrl
|
|
|
, function(result, status){
|
|
|
if(result.length>0){
|