From 1e8d77f909405c7fe05b518ded090fedff574ad6 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 25 Aug 2013 02:45:14 +0200 Subject: [PATCH] Upgrade to Bootstrap 3 --- js/core.js | 15 ++++++++++----- js/html/bodyIndex.html | 6 +++--- js/styles/main.less | 16 +++++++++------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/js/core.js b/js/core.js index 04e5417e..9e301780 100644 --- a/js/core.js +++ b/js/core.js @@ -455,12 +455,17 @@ define([ $menuPanelElt = $('.menu-panel').collapse({ toggle: false }); + $menuPanelElt.click(function(e) { + console.log(e); + }).find('.panel-content').click(function(e) { + e.stopPropagation(); + }); var menuPanelBackdropElt = undefined; $menuPanelElt.on('show.bs.collapse', function(e) { if(e.target === $menuPanelElt[0]) { isMenuPanelShown = true; - menuPanelBackdropElt = utils.createBackdrop('collapse', '.menu-panel'); - //$menuPanelElt.addClass('move-to-front'); + menuPanelBackdropElt = utils.createBackdrop(); + $menuPanelElt.addClass('move-to-front'); } else { // Close all open sub-menus when one submenu opens @@ -470,7 +475,7 @@ define([ if(e.target === $menuPanelElt[0]) { isMenuPanelShown = false; menuPanelBackdropElt.remove(); - //$menuPanelElt.removeClass('move-to-front'); + $menuPanelElt.removeClass('move-to-front'); } }).on('hidden.bs.collapse', function(e) { if(e.target === $menuPanelElt[0]) { @@ -487,7 +492,7 @@ define([ if(e.target === $documentPanelElt[0]) { isDocumentPanelShown = true; documentPanelBackdropElt = utils.createBackdrop('collapse', '.document-panel'); - //$documentPanelElt.addClass('move-to-front'); + $documentPanelElt.addClass('move-to-front'); } else { // Close all open sub-menus when one submenu opens @@ -497,7 +502,7 @@ define([ if(e.target === $documentPanelElt[0]) { isDocumentPanelShown = false; documentPanelBackdropElt.remove(); - //$documentPanelElt.removeClass('move-to-front'); + $documentPanelElt.removeClass('move-to-front'); } }).on('hidden.bs.collapse', function(e) { if(e.target === $documentPanelElt[0]) { diff --git a/js/html/bodyIndex.html b/js/html/bodyIndex.html index 55ddde61..9e4d1395 100644 --- a/js/html/bodyIndex.html +++ b/js/html/bodyIndex.html @@ -45,9 +45,9 @@
-