Merge remote-tracking branch 'origin/temp8' into temp8-logviewer
This commit is contained in:
@@ -414,7 +414,12 @@ function treeService($q, treeResource, iconHelper, notificationsService, eventsS
|
||||
for (var c = 0; c < tn.children.length; c++) {
|
||||
if (tn.children[c].isContainer) {
|
||||
//recurse
|
||||
return getTreeRoot(tn.children[c]);
|
||||
var root = getTreeRoot(tn.children[c]);
|
||||
|
||||
//only return if we found the root in this child, otherwise continue.
|
||||
if(root){
|
||||
return root;
|
||||
}
|
||||
}
|
||||
else if (self.getTreeAlias(tn.children[c]) === treeAlias) {
|
||||
return tn.children[c];
|
||||
|
||||
@@ -52,23 +52,23 @@
|
||||
}, function (err) {
|
||||
|
||||
vm.createFolderError = err;
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function createFile() {
|
||||
$location.path("/developer/partialviewmacros/edit/" + node.id).search("create", "true");
|
||||
$location.path("/settings/partialviewmacros/edit/" + node.id).search("create", "true");
|
||||
navigationService.hideMenu();
|
||||
}
|
||||
|
||||
function createFileWithoutMacro() {
|
||||
$location.path("/developer/partialviewmacros/edit/" + node.id).search("create", "true").search("nomacro", "true");
|
||||
$location.path("/settings/partialviewmacros/edit/" + node.id).search("create", "true").search("nomacro", "true");
|
||||
navigationService.hideMenu();
|
||||
}
|
||||
|
||||
function createFileFromSnippet(snippet) {
|
||||
$location.path("/developer/partialviewmacros/edit/" + node.id).search("create", "true").search("snippet", snippet.fileName);
|
||||
$location.path("/settings/partialviewmacros/edit/" + node.id).search("create", "true").search("snippet", snippet.fileName);
|
||||
navigationService.hideMenu();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user