diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js index a8ed90f1b0..727dc5ec94 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js @@ -60,7 +60,7 @@ bar.removeClass('-umb-sticky-bar'); bar.css({ - position: 'static', + position: 'relative', 'width': 'auto', 'height': 'auto', 'z-index': 'auto', diff --git a/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less b/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less index ea71f36d7e..5f6b91f4e9 100644 --- a/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less +++ b/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less @@ -5,6 +5,7 @@ display: flex; justify-content: space-between; margin-top: -30px; + position: relative; } .umb-editor-sub-header.-umb-sticky-bar { diff --git a/src/Umbraco.Web.UI.Client/src/less/main.less b/src/Umbraco.Web.UI.Client/src/less/main.less index d3c4c0de6e..0e1fcc633b 100644 --- a/src/Umbraco.Web.UI.Client/src/less/main.less +++ b/src/Umbraco.Web.UI.Client/src/less/main.less @@ -511,4 +511,4 @@ height:1px; margin: 10px 0; overflow: hidden; -} \ No newline at end of file +} .umb-loader-wrapper.-bottom { bottom: 0; } \ No newline at end of file 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 5ac02b9045..3854b2cb2a 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 @@ -301,6 +301,26 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific }); }; + $scope.selectedItemsCount = function() { + var selected = 0; + + for (var i = 0; $scope.listViewResultSet.items.length > i; i++) { + var item = $scope.listViewResultSet.items[i]; + if (item.selected) { + selected = selected + 1; + } + } + + return selected; + }; + + $scope.clearSelection = function() { + for (var i = 0; $scope.listViewResultSet.items.length > i; i++) { + var item = $scope.listViewResultSet.items[i]; + item.selected = false; + } + }; + $scope.getIcon = function(entry) { return iconHelper.convertFromLegacyIcon(entry.icon); }; 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 86c15fe117..932fbf06da 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 @@ -10,7 +10,7 @@ - +
Create @@ -28,29 +28,21 @@ -
- - Publish - + + + + + + {{ selectedItemsCount() }} of {{ listViewResultSet.items.length }} selected + + +
+
- - - - - -
-
-
- -
@@ -58,7 +50,7 @@ - + - +