| 
					
				 | 
			
			
				@@ -47,6 +47,10 @@ $.AdminLTE.options = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   sidebarPushMenu: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   sidebarSlimScroll: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //Enable sidebar expand on hover effect for sidebar mini 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //This option is forced to true if both the fixed layout and sidebar mini 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //are used together 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  sidebarExpandOnHover: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //BoxRefresh Plugin 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   enableBoxRefresh: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //Bootstrap.js tooltip 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -160,7 +164,7 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //Activate sidebar push menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (o.sidebarPushMenu) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $.AdminLTE.pushMenu(o.sidebarToggleSelector); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $.AdminLTE.pushMenu.activate(o.sidebarToggleSelector); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //Activate Bootstrap tooltip 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -277,36 +281,71 @@ function _init() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    * @type Function 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    * @usage: $.AdminLTE.pushMenu("[data-toggle='offcanvas']") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  $.AdminLTE.pushMenu = function (toggleBtn) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //Get the screen sizes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var screenSizes = this.options.screenSizes; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  $.AdminLTE.pushMenu = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    activate: function (toggleBtn) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //Get the screen sizes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var screenSizes = $.AdminLTE.options.screenSizes; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //Enable sidebar toggle 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $(toggleBtn).on('click', function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      e.preventDefault(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //Enable sidebar toggle 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $(toggleBtn).on('click', function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        e.preventDefault(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //Enable sidebar push menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if ($(window).width() > (screenSizes.sm - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $("body").toggleClass('sidebar-collapse'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //Handle sidebar push menu for small screens 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ($("body").hasClass('sidebar-open')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //Enable sidebar push menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($(window).width() > (screenSizes.sm - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          $("body").toggleClass('sidebar-collapse'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //Handle sidebar push menu for small screens 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if ($("body").hasClass('sidebar-open')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $("body").removeClass('sidebar-open'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $("body").removeClass('sidebar-collapse') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $("body").addClass('sidebar-open'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $(".content-wrapper").click(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //Enable hide menu when clicking on the content-wrapper on small screens 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($(window).width() <= (screenSizes.sm - 1) && $("body").hasClass("sidebar-open")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $("body").removeClass('sidebar-open'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          $("body").removeClass('sidebar-collapse') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          $("body").addClass('sidebar-open'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $(".content-wrapper").click(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //Enable hide menu when clicking on the content-wrapper on small screens 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if ($(window).width() <= (screenSizes.sm - 1) && $("body").hasClass("sidebar-open")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $("body").removeClass('sidebar-open'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //Enable expand on hover for sidebar mini 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if ($.AdminLTE.options.sidebarExpandOnHover 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              || ($('body').hasClass('fixed') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      && $('body').hasClass('sidebar-mini'))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.expandOnHover(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    expandOnHover: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var _this = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var screenWidth = $.AdminLTE.options.screenSizes.sm - 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //Expand sidebar on hover 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('.main-sidebar').hover(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($('body').hasClass('sidebar-mini') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                && $("body").hasClass('sidebar-collapse') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                && $(window).width() > screenWidth) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.expand(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($('body').hasClass('sidebar-mini') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                && $('body').hasClass('sidebar-expanded-on-hover') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                && $(window).width() > screenWidth) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.collapse(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    expand: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $("body").removeClass('sidebar-collapse').addClass('sidebar-expanded-on-hover'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    collapse: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if ($('body').hasClass('sidebar-expanded-on-hover')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $('body').removeClass('sidebar-expanded-on-hover').addClass('sidebar-collapse'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   /* Tree() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -398,6 +437,16 @@ function _init() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //If the body has a boxed layout, fix the sidebar bg position 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       var bg = $(".control-sidebar-bg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       _this._fix(bg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //If the body has a fixed layout, make the control sidebar fixed       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if ($('body').hasClass('fixed')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        _this._fixForFixed(sidebar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //If the content height is less the sidebar's height, force max height 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($('.content-wrapper, .right-side').height() < sidebar.height()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this._fixForContent(sidebar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //Open the control sidebar 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     open: function (sidebar, slide) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -430,6 +479,18 @@ function _init() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           'height': 'auto' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    _fixForFixed: function (sidebar) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      sidebar.css({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'position': 'fixed', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'max-height': '100%', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'overflow': 'auto', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'padding-bottom': '50px' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    _fixForContent: function (sidebar) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $(".content-wrapper, .right-side").css('min-height', sidebar.height()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log('triggered') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |