diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.notify.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.notify.controller.js index 9f59fba0ea..1435b0854e 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.notify.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.notify.controller.js @@ -3,13 +3,12 @@ $scope, contentResource, navigationService, - angularHelper, localizationService) { var vm = this; - var currentForm; vm.notifyOptions = []; vm.save = save; vm.cancel = cancel; + vm.notificationChanged = notificationChanged; vm.message = { name: $scope.currentNode.name }; @@ -17,7 +16,6 @@ function onInit() { vm.loading = true; contentResource.getNotifySettingsById($scope.currentNode.id).then(function (options) { - currentForm = angularHelper.getCurrentForm($scope); vm.loading = false; vm.notifyOptions = options; }); @@ -47,7 +45,10 @@ vm.saveError = error; }); } + function notificationChanged(item) { + vm.canSave = true; + } onInit(); } angular.module("umbraco").controller("Umbraco.Editors.Content.CreateNotifyController", CreateNotifyController); -}()); \ No newline at end of file +}()); diff --git a/src/Umbraco.Web.UI.Client/src/views/content/notify.html b/src/Umbraco.Web.UI.Client/src/views/content/notify.html index e6226ffb5e..006a61cba9 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/notify.html +++ b/src/Umbraco.Web.UI.Client/src/views/content/notify.html @@ -21,7 +21,7 @@