From 6c025cf31bab7e163262b642527a15afcf8fbda4 Mon Sep 17 00:00:00 2001 From: Mhtshum <43787378+Mhtshum@users.noreply.github.com> Date: Mon, 11 Mar 2019 22:06:48 +0500 Subject: [PATCH 1/2] - Append disabled flag --- .../Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js b/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js index 687725b4a1e..0a7f6534e01 100644 --- a/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js +++ b/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js @@ -743,7 +743,7 @@ getTree: function (sortOrder, onGetFirstLevelItemsCallback) { var onGetFirstLevelItemsHandler = $.proxy(this._onGetTree, this, onGetFirstLevelItemsCallback); - this._callGet({ sortOrder: sortOrder, includeAllTypes: true }, onGetFirstLevelItemsHandler, this.options.getTreeMethod); + this._callGet({ sortOrder: sortOrder, includeAllTypes: true, includeDisabled: true }, onGetFirstLevelItemsHandler, this.options.getTreeMethod); }, sortTree: function (sortOrder, rootNode, searchText, onSortTreeCallback) { From 5c846648a7bf848ba14731ef4a8327a8ee6752a5 Mon Sep 17 00:00:00 2001 From: Mhtshum Date: Mon, 8 Apr 2019 20:41:48 +0500 Subject: [PATCH 2/2] - sending includeDisabled if set by options --- .../Shared/scripts/TreeView/dnn.DynamicTreeView.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js b/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js index 0a7f6534e01..716a71c0ba7 100644 --- a/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js +++ b/Website/Resources/Shared/scripts/TreeView/dnn.DynamicTreeView.js @@ -743,7 +743,12 @@ getTree: function (sortOrder, onGetFirstLevelItemsCallback) { var onGetFirstLevelItemsHandler = $.proxy(this._onGetTree, this, onGetFirstLevelItemsCallback); - this._callGet({ sortOrder: sortOrder, includeAllTypes: true, includeDisabled: true }, onGetFirstLevelItemsHandler, this.options.getTreeMethod); + + var callGetParams = { sortOrder: sortOrder, includeAllTypes: true }; + if (this.options.includeDisabled) { + callGetParams.includeDisabled = this.options.includeDisabled; + } + this._callGet(callGetParams, onGetFirstLevelItemsHandler, this.options.getTreeMethod); }, sortTree: function (sortOrder, rootNode, searchText, onSortTreeCallback) {