From fe3af686545f754a5620f73c4c8e40d8d0adfb01 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 21 Sep 2015 17:36:09 +0100 Subject: [PATCH] Attach push menu event listener to document --- dist/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/js/app.js b/dist/js/app.js index b61d6cea8..36d187005 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -314,7 +314,7 @@ function _init() { var screenSizes = $.AdminLTE.options.screenSizes; //Enable sidebar toggle - $(toggleBtn).on('click', function (e) { + $(document).on('click', toggleBtn, function (e) { e.preventDefault(); //Enable sidebar push menu @@ -690,12 +690,12 @@ function _init() { $.fn.activateBox = function () { $.AdminLTE.boxWidget.activate(this); }; - + $.fn.toggleBox = function(){ var button = $($.AdminLTE.boxWidget.selectors.collapse, this); $.AdminLTE.boxWidget.collapse(button); }; - + $.fn.removeBox = function(){ var button = $($.AdminLTE.boxWidget.selectors.remove, this); $.AdminLTE.boxWidget.remove(button);