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