diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js index e4fac5f..bdfea7c 100644 --- a/core/modules/views_ui/js/views-admin.js +++ b/core/modules/views_ui/js/views-admin.js @@ -358,16 +358,16 @@ * Keyup handler for the search box that hides or shows the relevant options. */ handleKeyup: function (event) { - var found, i, j, option, search, words, wordsLength, zebraClass, zebraCounter; + var found, i, j, option, zebraClass; // Determine the user's search query. The search text has been converted to // lowercase. - search = this.$searchBox.val().toLowerCase(); - words = search.split(' '); - wordsLength = words.length; + var search = this.$searchBox.val().toLowerCase(); + var words = search.split(' '); + var wordsLength = words.length; // Start the counter for restriping rows. - zebraCounter = 0; + var zebraCounter = 0; // Search through the search texts in the form for matching text. var length = this.options.length; @@ -385,9 +385,9 @@ if (found) { zebraClass = (zebraCounter % 2) ? 'odd' : 'even'; // Show the checkbox row, and restripe it. - option.$div.show(); option.$div.removeClass('even odd'); option.$div.addClass(zebraClass); + option.$div.show(); zebraCounter++; } else {