Skip to content

Commit

Permalink
Attach push menu event listener to document
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Sep 21, 2015
1 parent ef8624b commit fe3af68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fe3af68

Please sign in to comment.