diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index c74d77a04b..a8555bd6ff 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -2457,6 +2457,9 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e .text(egw.lang(egw.app_name())) .appendTo(this.search_box); + this.select_counter = jQuery(document.createElement('div')) + .addClass('nm_select_counter') + .prependTo(this.search_box); // toggle header // add new button this.fav_span = jQuery(document.createElement('div')) diff --git a/pixelegg/js/fw_mobile.js b/pixelegg/js/fw_mobile.js index 9c79f2de87..42e64fdfda 100644 --- a/pixelegg/js/fw_mobile.js +++ b/pixelegg/js/fw_mobile.js @@ -996,6 +996,19 @@ { // Update action_header status (3dots) _widget.header.action_header.toggle(typeof _widget.getSelection().ids != 'undefined' && _widget.getSelection().ids.length > 0); + + // Update selection counter in nm header + if (_widget._type == 'nextmatch' && _widget.getSelection().ids.length > 0) + { + + _widget.header.select_counter + .show() + .text(_widget.getSelection().ids.length); + } + else + { + _widget.header.select_counter.hide(); + } } }); diff --git a/pixelegg/mobile/fw_mobile.css b/pixelegg/mobile/fw_mobile.css index 9bf647e249..21c680ef9b 100644 --- a/pixelegg/mobile/fw_mobile.css +++ b/pixelegg/mobile/fw_mobile.css @@ -7581,6 +7581,21 @@ form[id^="tracker-"] .dialogHeadbar { -webkit-filter: none!important; background-color: white !important; } + body .et2_nextmatch .nm-mob-header div.nm_select_counter { + background-position: center; + background-repeat: no-repeat; + margin-right: 5px; + border-left: 1px solid silver; + border: 0; + color: white; + width: 50px; + height: 50px; + display: block; + float: right; + text-align: center; + font-size: 20pt; + line-height: 40pt; + } body .et2_nextmatch .nm-mob-header div.nm_favorites_div { background-position: center; background-repeat: no-repeat; diff --git a/pixelegg/mobile/fw_mobile.less b/pixelegg/mobile/fw_mobile.less index c34dff93e0..031a8eaac8 100644 --- a/pixelegg/mobile/fw_mobile.less +++ b/pixelegg/mobile/fw_mobile.less @@ -701,6 +701,21 @@ -webkit-filter: none!important; background-color: white !important; } + div.nm_select_counter { + background-position: center; + background-repeat: no-repeat; + margin-right: 5px; + border-left: 1px solid silver; + border: 0; + color: white; + width: 50px; + height: 50px; + display: block; + float: right; + text-align: center; + font-size: 20pt; + line-height: 40pt; + } div.nm_favorites_div { background-position: center; background-repeat: no-repeat;