Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views_ui / js / views_ui.listing.es6.js
index 61a66661e76240ec3c508eba7f1f3a626be239eb..92c14e233f2d13fb6b7dbf80d211079245762f67 100644 (file)
@@ -3,7 +3,7 @@
  * Views listing behaviors.
  */
 
-(function ($, Drupal) {
+(function($, Drupal) {
   /**
    * Filters the view listing tables by a text input search string.
    *
       let $rows;
 
       function filterViewList(e) {
-        const query = $(e.target).val().toLowerCase();
+        const query = $(e.target)
+          .val()
+          .toLowerCase();
 
         function showViewRow(index, row) {
           const $row = $(row);
-          const $sources = $row.find('[data-drupal-selector="views-table-filter-text-source"]');
-          const textMatch = $sources.text().toLowerCase().indexOf(query) !== -1;
+          const $sources = $row.find(
+            '[data-drupal-selector="views-table-filter-text-source"]',
+          );
+          const textMatch =
+            $sources
+              .text()
+              .toLowerCase()
+              .indexOf(query) !== -1;
           $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();
         }
       }
@@ -47,4 +54,4 @@
       }
     },
   };
-}(jQuery, Drupal));
+})(jQuery, Drupal);