diff --git a/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js index 8c1e7edb73..1a68afe47c 100644 --- a/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js @@ -19,10 +19,8 @@ function DictionaryEditController($scope, $routeParams, $location, dictionaryRes vm.page.menu.currentSection = appState.getSectionState("currentSection"); vm.page.menu.currentNode = null; vm.description = ""; - vm.showBackButton = true; - + vm.save = saveDictionary; - vm.back = back; function loadDictionary() { @@ -102,11 +100,7 @@ function DictionaryEditController($scope, $routeParams, $location, dictionaryRes }); } } - - function back() { - $location.path("settings/dictionary/list"); - } - + $scope.$watch("vm.content.name", function (newVal, oldVal) { //when the value changes, we need to set the name dirty if (newVal && (newVal !== oldVal) && typeof(oldVal) !== "undefined") { diff --git a/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html b/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html index 41320108e7..b61175f8c9 100644 --- a/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html @@ -12,8 +12,7 @@ hide-icon="true" hide-description="true" hide-alias="true" - on-back="vm.back()" - show-back-button="vm.showBackButton"> + >