1/** 2 * @file 3 * Add support for Better Exposed Filters integration. 4 */ 5(function ($, Drupal) { 6 'use strict'; 7 8 function applyChosenBef($select) { 9 $select.next('.chosen-container').find('.chosen-search-input').attr('data-bef-auto-submit-exclude', true); 10 } 11 12 Drupal.behaviors.chosenBef = { 13 attach: function (context, settings) { 14 $(once('chosenBef', 'select')).each(function () { 15 const $select = $(this); 16 if ($select.next('.chosen-container').length) { 17 applyChosenBef($select); 18 } else { 19 $select.on('chosen:ready', function () { 20 applyChosenBef($select); 21 }); 22 } 23 }); 24 } 25 }; 26})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.