From ed5227aea1bcca8b652602a9a13875ad326d960c Mon Sep 17 00:00:00 2001 From: rulingcom Date: Sun, 9 Apr 2023 20:38:18 +0800 Subject: [PATCH] fix mobile menu --- assets/javascripts/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index fe21bb0..1d15af8 100755 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -325,7 +325,7 @@ // orbit.nav.setDropdown(); orbit.MobileMenu(); $('.mobile-menu').append($('.modules-menu')); - orbit.ClickMenuHandler(); + //orbit.ClickMenuHandler(); } // 自適應網頁使用,當使用者改變瀏覽器寬度時呼叫orbit.nav.setDropdown函數 @@ -338,11 +338,11 @@ } if( $('.mobile-menu .modules-menu').length == 0 ) { $('.mobile-menu').append($('.modules-menu')); - $('.navbar-toggle').bind(orbit.ClickMenuHandler()); + //$('.navbar-toggle').bind(orbit.ClickMenuHandler()); } },500 )} else { orbit.MobileMenu(); - orbit.ClickMenuHandler(); + //orbit.ClickMenuHandler(); resizeTimer = setTimeout(function(){ if( $('.mobile-menu .modules-menu').length > 0 ) { $('.layout-header .container').append($('.modules-menu'));