diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp index 1f82fe65..f3c7972e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -229,6 +229,10 @@ integrationSearch.fnInfo = (params) => { // 이벤트 integrationSearch.setEvent = () => { + + // 달력 초기화 + initDatepicker("frmSearch--${pageName}"); + // form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용 $("#frmSearch--${pageName}").find(".form-date").each(function() { $(this).on("input", function() { @@ -241,7 +245,20 @@ integrationSearch.setEvent = () => { } }); }); + + $("#frmSearch--${pageName}").find(".form-time").each(function(){ + $(this).on("input",function(){ + var value = this.value.replaceAll(":",""); + + if(value.length > 5){ + this.value = value.substring(0,2)+":"+value.substring(2,4)+":"+value.substring(4); + } else if(value.length > 3){ + this.value = value.substring(0,2)+":"+value.substring(2); + } + }); + }); + // DataTables width 변경 조정 $("#upTable--${pageName}").find("th").resizable( {handles : "e"} ); $("#downTable--${pageName}").find("th").resizable( {handles : "e"} ); @@ -252,9 +269,7 @@ integrationSearch.setEvent = () => { **************************************************************************/ // 초기화 integrationSearch.fnReset = () => { - // 달력 초기화 - initDatepicker("frmSearch--${pageName}"); - + integrationSearchControl.dataset.clear(); }