rename document types folder to match tree
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user