From e18c02dbf9d0623f073d2da39a23a532b4d7b9c9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 27 Oct 2023 17:24:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=A0=EC=A7=9C,=EC=8B=9C=EA=B0=84=20?= =?UTF-8?q?=ED=8F=AC=EB=A7=A4=ED=8C=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/sprt/sprt01010-main.jsp | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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(); }