Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / filter / filter.es6.js
index 97c5501a51694de22d0b8d25776b1a985ec61b59..330a53ff4d745e0fa48a3f33a1d5ad375c3f0cc9 100644 (file)
@@ -3,7 +3,7 @@
  * Attaches behavior for the Filter module.
  */
 
-(function ($, Drupal) {
+(function($, Drupal) {
   /**
    * Displays the guidelines of the selected text format automatically.
    *
       function updateFilterGuidelines(event) {
         const $this = $(event.target);
         const value = $this.val();
-        $this.closest('.filter-wrapper')
-          .find('.filter-guidelines-item').hide()
-          .filter(`.filter-guidelines-${value}`).show();
+        $this
+          .closest('.filter-wrapper')
+          .find('.filter-guidelines-item')
+          .hide()
+          .filter(`.filter-guidelines-${value}`)
+          .show();
       }
 
-      $(context).find('.filter-guidelines').once('filter-guidelines')
-        .find(':header').hide()
-        .closest('.filter-wrapper').find('select.filter-list')
+      $(context)
+        .find('.filter-guidelines')
+        .once('filter-guidelines')
+        .find(':header')
+        .hide()
+        .closest('.filter-wrapper')
+        .find('select.filter-list')
         .on('change.filterGuidelines', updateFilterGuidelines)
         // Need to trigger the namespaced event to avoid triggering formUpdated
         // when initializing the select.
         .trigger('change.filterGuidelines');
     },
   };
-}(jQuery, Drupal));
+})(jQuery, Drupal);