X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews_ui%2Fjs%2Fviews_ui.listing.js;fp=web%2Fcore%2Fmodules%2Fviews_ui%2Fjs%2Fviews_ui.listing.js;h=4da040580ea4028667b12ad68c1a7e92328dfeed;hp=7d19cd498d2e22062d68f6d3e8aa869db08d04a5;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/views_ui/js/views_ui.listing.js b/web/core/modules/views_ui/js/views_ui.listing.js index 7d19cd498..4da040580 100644 --- a/web/core/modules/views_ui/js/views_ui.listing.js +++ b/web/core/modules/views_ui/js/views_ui.listing.js @@ -1,29 +1,16 @@ /** - * @file - * Views listing behaviors. - */ +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ (function ($, Drupal) { - - 'use strict'; - - /** - * Filters the view listing tables by a text input search string. - * - * Text search input: input.views-filter-text - * Target table: input.views-filter-text[data-table] - * Source text: [data-drupal-selector="views-table-filter-text-source"] - * - * @type {Drupal~behavior} - * - * @prop {Drupal~behaviorAttach} attach - * Attaches the filter functionality to the views admin text search field. - */ Drupal.behaviors.viewTableFilterByText = { - attach: function (context, settings) { + attach: function attach(context, settings) { var $input = $('input.views-filter-text').once('views-filter-text'); var $table = $($input.attr('data-table')); - var $rows; + var $rows = void 0; function filterViewList(e) { var query = $(e.target).val().toLowerCase(); @@ -35,11 +22,9 @@ $row.closest('tr').toggle(textMatch); } - // Filter if the length of the query is at least 2 characters. if (query.length >= 2) { $rows.each(showViewRow); - } - else { + } else { $rows.show(); } } @@ -50,5 +35,4 @@ } } }; - -}(jQuery, Drupal)); +})(jQuery, Drupal); \ No newline at end of file