rename document types folder to match tree

This commit is contained in:
Mads Rasmussen
2015-09-28 19:33:24 +02:00
parent 121c2f838c
commit 3d61344033
14 changed files with 5 additions and 5 deletions

View File

@@ -25,13 +25,13 @@ function contentTypeCreateController($scope, $location, navigationService, conte
navigationService.hideMenu();
var currPath = node.path ? node.path : "-1";
navigationService.syncTree({ tree: "documenttype", path: currPath + "," + folderId, forceReload: true, activate: true });
navigationService.syncTree({ tree: "documenttypes", path: currPath + "," + folderId, forceReload: true, activate: true });
formHelper.resetForm({ scope: $scope });
var section = appState.getSectionState("currentSection");
$location.path("/" + section + "/documenttype/list/" + folderId);
$location.path("/" + section + "/documenttypes/list/" + folderId);
}, function(err) {
@@ -43,14 +43,14 @@ function contentTypeCreateController($scope, $location, navigationService, conte
$scope.createDocType = function() {
$location.search('create', null);
$location.search('notemplate', null);
$location.path("/settings/documenttype/edit/" + node.id).search("create", true);
$location.path("/settings/documenttypes/edit/" + node.id).search("create", true);
navigationService.hideMenu();
}
$scope.createComponent = function() {
$location.search('create', null);
$location.search('notemplate', null);
$location.path("/settings/documenttype/edit/" + node.id).search("create", true).search("notemplate", true);
$location.path("/settings/documenttypes/edit/" + node.id).search("create", true).search("notemplate", true);
navigationService.hideMenu();
}
}

View File

@@ -260,7 +260,7 @@
/** Syncs the content type to it's tree node - this occurs on first load and after saving */
function syncTreeNode(dt, path, initialLoad) {
navigationService.syncTree({ tree: "documenttype", path: path.split(","), forceReload: initialLoad !== true }).then(function (syncArgs) {
navigationService.syncTree({ tree: "documenttypes", path: path.split(","), forceReload: initialLoad !== true }).then(function (syncArgs) {
vm.currentNode = syncArgs.node;
});