From 11a19a4adaff2a600e13e10eaca49baff386cdaa Mon Sep 17 00:00:00 2001 From: Mohtisham Zubair Date: Tue, 9 Apr 2019 23:48:58 +0500 Subject: [PATCH] - Append disabled flag (#2623) * - Append disabled flag * - 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 687725b4a1e..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 }, 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) {