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() {