diff --git a/src/main/webapp/resources/js/fims/photo-main.js b/src/main/webapp/resources/js/fims/photo-main.js index a35ba6dc..ef6f23a4 100644 --- a/src/main/webapp/resources/js/fims/photo-main.js +++ b/src/main/webapp/resources/js/fims/photo-main.js @@ -295,7 +295,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){ } } -function initPhotoMain(pageName, fileList, existVideo){ +function initPhotoMain(pageName, fileList, existVideo, showBtn=true){ let $P = pageObject[pageName]; @@ -305,9 +305,10 @@ function initPhotoMain(pageName, fileList, existVideo){ } else { $P.$findn("btnOpenVideoCapture").hide(); } - - // 렌트업무에서는 버튼을 숨긴다. - if (pageName == "rent02020" || pageName == "rent03020") { + // 버튼 div를 숨긴다. + if (showBtn) { + $P.$findn("divBtn").show(); + } else { $P.$findn("divBtn").hide(); }