diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js index 86738d265d..f1f9a84c38 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js @@ -111,6 +111,20 @@ angular.module("umbraco") return $scope.selected.length > 0; }; + $scope.delete = function () { + var current = 1; + var total = $scope.selected.length; + for (var i = 0; i < $scope.selected.length; i++) { + contentResource.deleteById($scope.selected[i]).then(function (data) { + current++; + if (current == total) { + $scope.reloadView($scope.content.id); + } + }); + } + + }; + if($routeParams.id){ $scope.pagination = new Array(100); $scope.listViewAllowedTypes = contentTypeResource.getAllowedTypes($routeParams.id); diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html index 2c683a6cfe..504f718c33 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html @@ -23,7 +23,7 @@ Unpublish