rename media types folder to match tree

This commit is contained in:
Mads Rasmussen
2015-09-28 19:45:48 +02:00
parent 3d61344033
commit 6f5fef6d2c
10 changed files with 4 additions and 4 deletions

View File

@@ -25,13 +25,13 @@ function mediaTypeCreateController($scope, $location, navigationService, mediaTy
navigationService.hideMenu();
var currPath = node.path ? node.path : "-1";
navigationService.syncTree({ tree: "mediatype", path: currPath + "," + folderId, forceReload: true, activate: true });
navigationService.syncTree({ tree: "mediatypes", path: currPath + "," + folderId, forceReload: true, activate: true });
formHelper.resetForm({ scope: $scope });
var section = appState.getSectionState("currentSection");
$location.path("/" + section + "/mediatype/list/" + folderId);
$location.path("/" + section + "/mediatypes/list/" + folderId);
}, function(err) {
@@ -42,7 +42,7 @@ function mediaTypeCreateController($scope, $location, navigationService, mediaTy
$scope.createMediaType = function() {
$location.search('create', null);
$location.path("/settings/mediatype/edit/" + node.id).search("create", true);
$location.path("/settings/mediatypes/edit/" + node.id).search("create", true);
navigationService.hideMenu();
}
}

View File

@@ -232,7 +232,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: "mediatype", path: path.split(","), forceReload: initialLoad !== true }).then(function (syncArgs) {
navigationService.syncTree({ tree: "mediatypes", path: path.split(","), forceReload: initialLoad !== true }).then(function (syncArgs) {
vm.currentNode = syncArgs.node;
});