diff --git a/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.controller.js b/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.controller.js index b79f1f6866..42391648ae 100644 --- a/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.controller.js @@ -17,6 +17,11 @@ angular.module("umbraco").controller("Umbraco.PrevalueEditors.CropSizesControlle $scope.newItem = item; }; + $scope.cancel = function(evt) { + evt.preventDefault(); + $scope.newItem = null; + }; + $scope.add = function (evt) { evt.preventDefault(); @@ -29,7 +34,7 @@ angular.module("umbraco").controller("Umbraco.PrevalueEditors.CropSizesControlle return; } - $scope.newItem = undefined; + $scope.newItem = null; //there was an error, do the highlight (will be set back by the directive) $scope.hasError = true; } diff --git a/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.html b/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.html index 68949b42ec..3ef7e6f3bd 100644 --- a/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.html +++ b/src/Umbraco.Web.UI.Client/src/views/prevalueeditors/cropsizes.html @@ -1,10 +1,8 @@
Give the crop an alias and it's default width and height. @@ -37,7 +35,8 @@