From 6601c0dc02f5892a40be14a67e9178959c17abe9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 19 Apr 2023 10:03:34 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=A6=90=EA=B2=A8=EC=B0=BE=EA=B8=B0,?= =?UTF-8?q?=20=EB=A9=94=EB=89=B4=EC=88=A8=EA=B8=B0=EA=B8=B0=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=ED=81=B4=EB=A6=AD=20=ED=95=A8=EC=88=98=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tiles/biz/layout-tiles-biz-main.jsp | 27 +++++++++++++++++++ .../resources/biz/common/js/defaultUI.js | 25 ----------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp b/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp index adf84b83..b3847c0d 100644 --- a/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp @@ -337,7 +337,34 @@ } }); + /*--------------------- 메뉴 바 제어 ---------------------*/ + $( "body" ).on( "click", "button.hamberger", function() { + var e=$(this); + var eHasClass=e.hasClass('active'); + + if(eHasClass==true){ + $( "header, button.hamberger").removeClass('active'); + document.querySelector('#sneatMenu').classList.add("menu-collapsed"); + }else{ + $( "header, button.hamberger").addClass('active'); + document.querySelector('#sneatMenu').classList.remove("menu-collapsed"); + } + }); + + /*--------------------- 빠른 메뉴 영역 제어 ---------------------*/ + $( "#favorites" ).on( "click", function() { + var e= $('#fastMenu'); + + var eHasClass=e.hasClass('fastmenu-open'); + + if(eHasClass==true){ + document.querySelector('#fastMenu').classList.replace('fastmenu-open', 'fastmenu-close'); + }else{ + document.querySelector('#fastMenu').classList.replace('fastmenu-close', 'fastmenu-open'); + } + }); + diff --git a/src/main/webapp/resources/biz/common/js/defaultUI.js b/src/main/webapp/resources/biz/common/js/defaultUI.js index 06f48b51..7bbba40c 100644 --- a/src/main/webapp/resources/biz/common/js/defaultUI.js +++ b/src/main/webapp/resources/biz/common/js/defaultUI.js @@ -109,32 +109,7 @@ function fn_securityModeToggle(flag){ } $(document).ready(function(){ - /*--------------------- 메뉴 바 제어 ---------------------*/ - $( "body" ).on( "click", "button.hamberger", function() { - var e=$(this); - var eHasClass=e.hasClass('active'); - - if(eHasClass==true){ - $( "header, button.hamberger").removeClass('active'); - document.querySelector('#sneatMenu').classList.add("menu-collapsed"); - }else{ - $( "header, button.hamberger").addClass('active'); - document.querySelector('#sneatMenu').classList.remove("menu-collapsed"); - } - }); - - /*--------------------- 빠른 메뉴 영역 제어 ---------------------*/ - $( "#favorites" ).on( "click", function() { - var e= $('#fastMenu'); - var eHasClass=e.hasClass('fastmenu-open'); - - if(eHasClass==true){ - document.querySelector('#fastMenu').classList.replace('fastmenu-open', 'fastmenu-close'); - }else{ - document.querySelector('#fastMenu').classList.replace('fastmenu-close', 'fastmenu-open'); - } - }); /*--------------------- 검색영역 상세검색 제어 ---------------------*/ $( "body" ).on( "click", ".btn-open-detail", function() {