Skip to content

Commit

Permalink
- Append disabled flag (#2623)
Browse files Browse the repository at this point in the history
* - Append disabled flag

* - sending includeDisabled if set by options
  • Loading branch information
Mohtisham Zubair authored and mitchelsellers committed Apr 9, 2019
1 parent a71ff76 commit 11a19a4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11a19a4

Please sign in to comment.