Browse Source

Add option to control sidemenu's tree views.

Alexey ERYSHEV 8 years ago
parent
commit
7ec587b75b
3 changed files with 9 additions and 1 deletions
  1. 5 1
      dist/js/app.js
  2. 2 0
      documentation/build/include/adminlte-options.html
  3. 2 0
      documentation/index.html

+ 5 - 1
dist/js/app.js

@@ -63,6 +63,8 @@ $.AdminLTE.options = {
   //choose to enable the plugin, make sure you load the script
   //before AdminLTE's app.js
   enableFastclick: false,
+  //Control Sidebar Tree views
+  enableControlTreeView: true,
   //Control Sidebar Options
   enableControlSidebar: true,
   controlSidebarOptions: {
@@ -160,7 +162,9 @@ $(function () {
   $.AdminLTE.layout.activate();
 
   //Enable sidebar tree view controls
-  $.AdminLTE.tree('.sidebar');
+  if (o.enableControlTreeView) {
+    $.AdminLTE.tree('.sidebar');
+  }
 
   //Enable control sidebar
   if (o.enableControlSidebar) {

+ 2 - 0
documentation/build/include/adminlte-options.html

@@ -54,6 +54,8 @@
   //choose to enable the plugin, make sure you load the script
   //before AdminLTE's app.js
   enableFastclick: true,
+  //Control Sidebar Tree Views
+  enableControlTreeView: true,
   //Control Sidebar Options
   enableControlSidebar: true,
   controlSidebarOptions: {

+ 2 - 0
documentation/index.html

@@ -358,6 +358,8 @@ AdminLTE/
   //choose to enable the plugin, make sure you load the script
   //before AdminLTE's app.js
   enableFastclick: true,
+  //Control Sidebar Tree Views
+  enableControlTreeView: true,
   //Control Sidebar Options
   enableControlSidebar: true,
   controlSidebarOptions: {