diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js index 761185e..3ed1321 100644 --- a/core/modules/views_ui/js/views-admin.js +++ b/core/modules/views_ui/js/views-admin.js @@ -520,6 +520,7 @@ var group = this.$controlGroup.val(); // Search through the search texts in the form for matching text. + var activeViews = 0; this.options.forEach(function (option) { function hasWord(word) { return option.searchText.indexOf(word) !== -1; @@ -536,10 +537,16 @@ } option.$div.toggle(found); + activeViews += found; }); // Adapt dialog to content size. $(event.target).trigger('dialogContentResize'); + + Drupal.announce( + Drupal.formatPlural(activeViews, '1 option is available in the modified list.', '@count options are available in the modified list.') + ); + } });