diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js index d5a5c75..f7b0ec8 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 areActive = 0; this.options.forEach(function (option) { function hasWord(word) { return option.searchText.indexOf(word) !== -1; @@ -536,6 +537,7 @@ } option.$div.toggle(found); + areActive += found; }); // Adapt dialog to content size. @@ -544,7 +546,7 @@ Drupal.announce( Drupal.t( '!views views are available in the modified list.', - {'!views': $('.views-filterable-options table tr:visible').length - 1} + {'!views': areActive} ) ); }