From c9f57a6194457fd0d1cb634d8d970aca58399ff5 Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 2 Aug 2024 17:41:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=EA=B4=80=EB=A0=A8?= =?UTF-8?q?=ED=95=A8=EC=88=98=20=EC=88=98=EC=A0=95(html=EC=9A=94=EC=86=8C?= =?UTF-8?q?=EC=9D=98=20id=EA=B0=80=20=EC=95=84=EB=8B=8C=20=20html=EC=9A=94?= =?UTF-8?q?=EC=86=8C=20=EA=B0=9D=EC=B2=B4=EB=8F=84=20=EB=B0=9B=EC=9D=84=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/applib/js/initAfterPageLoad.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/resources/applib/js/initAfterPageLoad.js b/src/main/webapp/resources/applib/js/initAfterPageLoad.js index 154e934..f58ceda 100644 --- a/src/main/webapp/resources/applib/js/initAfterPageLoad.js +++ b/src/main/webapp/resources/applib/js/initAfterPageLoad.js @@ -1,6 +1,10 @@ function initDatepicker(elementId){ - - var executionArea = $("#"+elementId); + var executionArea; + if(typeof elementId == "string"){ + executionArea = $("#"+elementId); + } else { + executionArea = $(elementId); + } executionArea.find(".form-date").datePicker(); @@ -8,7 +12,12 @@ function initDatepicker(elementId){ function initDetailSearchButton(elementId){ - var executionArea = $("#"+elementId); + var executionArea; + if(typeof elementId == "string"){ + executionArea = $("#"+elementId); + } else { + executionArea = $(elementId); + } /*--------------------- 상세검색 버튼 제어 ---------------------*/ executionArea.find(".btn-open-detail").on("click", function() {