Skip to content

Commit

Permalink
U4 10147 - Bypass User Security option in pickers (#2441)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwhte authored and nul800sebastiaan committed Mar 23, 2019
1 parent 4e16347 commit cc9a7ff
Show file tree
Hide file tree
Showing 35 changed files with 3,049 additions and 2,804 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function treeSearchBox(localizationService, searchService, $q) {
searchFromName: "@",
showSearch: "@",
section: "@",
ignoreUserStartNodes: "@",
hideSearchCallback: "=",
searchCallback: "="
},
Expand All @@ -34,6 +35,7 @@ function treeSearchBox(localizationService, searchService, $q) {
scope.showSearch = "false";
}


//used to cancel any request in progress if another one needs to take it's place
var canceler = null;

Expand All @@ -60,6 +62,11 @@ function treeSearchBox(localizationService, searchService, $q) {
searchArgs["searchFrom"] = scope.searchFromId;
}

//append ignoreUserStartNodes value if there is one
if (scope.ignoreUserStartNodes) {
searchArgs["ignoreUserStartNodes"] = scope.ignoreUserStartNodes;
}

searcher(searchArgs).then(function (data) {
scope.searchCallback(data);
//set back to null so it can be re-created
Expand Down
Loading

0 comments on commit cc9a7ff

Please sign in to comment.