From 4eef8a961f5a19e291b75c14b76143d15c4961a4 Mon Sep 17 00:00:00 2001 From: JoJH Date: Thu, 7 Nov 2024 16:38:14 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=ED=83=80=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/excl/excl02030-info.jsp | 14 +++++++------- .../WEB-INF/jsp/fims/sprt/sprt02030-info.jsp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp index 06b73837..3f554694 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp @@ -197,17 +197,19 @@ // 초기 화면 설정 $P.fnReset = () => { - // 화면 초기화 - $P.findn("frmEdit").reset(); + // 초기화 + $P.findn("frmEdit").reset(); // 화면 초기화 + AppSupport.initDatepicker($P.findn("frmEdit")); // 달력 초기화 - // 달력 초기화 - $P.$findn("ansYmd").datepicker("setDate", TODAY()); - $P.$findn("ansTm").val(new Date().toTimeString().split(" ")[0]); + // 기본 데이터 설정 + $P.$findn("ansYmd").datepicker("setDate", TODAY()); // 답변 일자 + $P.$findn("ansTm").val(new Date().toTimeString().split(" ")[0]); // 답변 시각 // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true if ($P.callPurpose == "view") { // input 요소들을 disabled $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true); + // button 요소들을 disabled $P.$findn("btnAnsYmd").prop("disabled", true); // 답변 일자 달력 버튼 $P.$findn("btnSave").prop("disabled", true); // 저장 버튼 @@ -221,8 +223,6 @@ $P.setEvent(); // 2. 초기 화면 설정 - AppSupport.initDatepicker($P.findn("frmEdit")); - $P.fnReset(); // 3. Dataset 설정 diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp index ecac849e..2ecd9bf9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp @@ -211,7 +211,7 @@ AppSupport.setDialogZindex(); } - , onClose: () => { $P.ctrlOpnn.refresh(); } // 정보 새로고침 + , onClose: () => { $P.fnRefresh(); } // 정보 새로고침 }); } });