소스 검색

Attach push menu event listener to document

Luke Childs 9 년 전
부모
커밋
fe3af68654
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      dist/js/app.js

+ 3 - 3
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);