diff --git a/WebContent/WEB-INF/view/partMng/partMngTempList.jsp b/WebContent/WEB-INF/view/partMng/partMngTempList.jsp index 649f637..e5d7e28 100644 --- a/WebContent/WEB-INF/view/partMng/partMngTempList.jsp +++ b/WebContent/WEB-INF/view/partMng/partMngTempList.jsp @@ -196,29 +196,8 @@ ui-jqgrid tr.jqgrow td { {headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '비고', field : 'REMARK' } ]; - // 중복 요청 방지 플래그 - var isSearching = false; - function fn_search(){ - // 이미 검색 중이면 중단 - if (isSearching) { - console.log('검색 중입니다. 잠시만 기다려주세요.'); - return; - } - - isSearching = true; - - _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngTempGridList.do", columns, true, function() { - // 검색 완료 후 플래그 해제 - isSearching = false; - }); - - // 타임아웃 방어 (10초 후 자동 해제) - setTimeout(function() { - if (isSearching) { - isSearching = false; - } - }, 10000); + _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngTempGridList.do", columns, true); } function openPartMngPopup(objId){ diff --git a/WebContent/WEB-INF/view/partMng/structureList.jsp b/WebContent/WEB-INF/view/partMng/structureList.jsp index cf8148c..6944cb5 100644 --- a/WebContent/WEB-INF/view/partMng/structureList.jsp +++ b/WebContent/WEB-INF/view/partMng/structureList.jsp @@ -234,31 +234,9 @@ var columns = [ {headerHozAlign : 'center', hozAlign : 'center', width : '110', title : '상태', field : 'STATUS' } ]; -// 중복 요청 방지를 위한 로딩 플래그 -var isSearching = false; - //var grid; function fn_search(){ - // 이미 검색 중이면 중복 요청 방지 - if (isSearching) { - console.log('검색 중입니다. 잠시만 기다려주세요.'); - return; - } - - isSearching = true; - - // 기존 그리드 검색 함수 실행 - _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/searchStructureGridList.do", columns, true, function() { - // 검색 완료 후 플래그 해제 - isSearching = false; - }); - - // fnc_tabul_search가 콜백을 지원하지 않을 경우를 위한 타임아웃 처리 - setTimeout(function() { - if (isSearching) { - isSearching = false; - } - }, 10000); // 10초 타임아웃 + _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/searchStructureGridList.do", columns, true); } //양산제품에 해당하는 SPEC 정보 목록을 가져온다.