diff -u b/core/modules/filter/filter.admin.js b/core/modules/filter/filter.admin.js --- b/core/modules/filter/filter.admin.js +++ b/core/modules/filter/filter.admin.js @@ -9,13 +9,13 @@ Drupal.behaviors.filterStatus = { attach: function (context, settings) { - $(context).find('#filters-status-wrapper input.form-checkbox').once('filter-status', function () { - var $checkbox = $(this), - // Retrieve the tabledrag row belonging to this filter. - $row = $('#' + $checkbox.attr('id').replace(/-status$/, '-weight')).closest('tr'), - // Retrieve the vertical tab belonging to this filter. - $filterSettings = $('#' + $checkbox.attr('id').replace(/-status$/, '-settings')), - filterSettingsTab = $filterSettings.data('verticalTab'); + $(context).find('#filters-status-wrapper input.form-checkbox').once('filter-status').each(function () { + var $checkbox = $(this); + // Retrieve the tabledrag row belonging to this filter. + var $row = $('#' + $checkbox.attr('id').replace(/-status$/, '-weight')).closest('tr'); + // Retrieve the vertical tab belonging to this filter. + var $filterSettings = $('#' + $checkbox.attr('id').replace(/-status$/, '-settings')); + var filterSettingsTab = $filterSettings.data('verticalTab'); // Bind click handler to this checkbox to conditionally show and hide the // filter's tableDrag row and vertical tab pane. diff -u b/core/modules/filter/filter.js b/core/modules/filter/filter.js --- b/core/modules/filter/filter.js +++ b/core/modules/filter/filter.js @@ -14,14 +14,14 @@ attach: function (context) { function updateFilterGuidelines (event) { - var $this = $(event.target), - value = $this.val(); + var $this = $(event.target); + var value = $this.val(); $this.closest('.filter-wrapper') .find('.filter-guidelines-item').hide() .filter('.filter-guidelines-' + value).show(); } - $('.filter-guidelines').once('filterGuidelines') + $('.filter-guidelines').once('filter-guidelines') .find('h1, h2, h3, h4, h5, h6').hide() .closest('.filter-wrapper').find('select.filter-list') .on('change.filterGuidelines', updateFilterGuidelines)