From 7ec587b75bbeec8a5fd07da2a0101c60083d0537 Mon Sep 17 00:00:00 2001 From: Alexey ERYSHEV Date: Mon, 5 Dec 2016 13:17:36 +0100 Subject: [PATCH] Add option to control sidemenu's tree views. --- dist/js/app.js | 6 +++++- documentation/build/include/adminlte-options.html | 2 ++ documentation/index.html | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dist/js/app.js b/dist/js/app.js index 5dc09ee2c..93158d3e1 100644 --- a/dist/js/app.js +++ b/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) { diff --git a/documentation/build/include/adminlte-options.html b/documentation/build/include/adminlte-options.html index 69b4da6ab..d3b0256ce 100644 --- a/documentation/build/include/adminlte-options.html +++ b/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: { diff --git a/documentation/index.html b/documentation/index.html index daf89b6f8..0effb7347 100644 --- a/documentation/index.html +++ b/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: {