Attach push menu event listener to document

pull/699/head
Luke Childs 2015-09-21 17:36:09 +01:00
parent ef8624bff7
commit fe3af68654
1 changed files with 3 additions and 3 deletions

6
dist/js/app.js vendored
View File

@ -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);