diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.controller.js index f275cdc25b..3e13e0014b 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.controller.js @@ -43,7 +43,7 @@ $scope.model.value.splice(idx, 1); }; - $scope.add = function () { + $scope.add = function ($event) { if ($scope.newCaption == "") { $scope.hasError = true; } else { @@ -79,6 +79,7 @@ $scope.newInternalName = ''; } + $event.preventDefault(); }; $scope.switch = function ($event) { diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.html index 5513d96a58..afd61a4e88 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/relatedlinks/relatedlinks.html @@ -51,7 +51,6 @@ -
@@ -68,10 +67,9 @@
- +
-