PageSourceSearch

https://exonerationregistry.org/core/modules/filter/filter.js?v=10.6.17

js exonerationregistry.org collected 2026-10-02 03:45:19 UTC 1,145 bytes, 39 lines download raw bytes

1/**
2 * @file
3 * Attaches behavior for the Filter module.
4 */
5
6(function ($, Drupal) {
7  /**
8   * Displays the guidelines of the selected text format automatically.
9   *
10   * @type {Drupal~behavior}
11   *
12   * @prop {Drupal~behaviorAttach} attach
13   *   Attaches behavior for updating filter guidelines.
14   */
15  Drupal.behaviors.filterGuidelines = {
16    attach(context) {
17      function updateFilterGuidelines(event) {
18        const $this = $(event.target);
19        const { value } = event.target;
20        $this
21          .closest('.js-filter-wrapper')
22          .find('[data-drupal-format-id]')
23          .hide()
24          .filter(`[data-drupal-format-id="${value}"]`)
25          .show();
26      }
27
28      $(once('filter-guidelines', '.js-filter-guidelines', context))
29        .find(':header')
30        .hide()
31        .closest('.js-filter-wrapper')
32        .find('select.js-filter-list')
33        .on('change.filterGuidelines', updateFilterGuidelines)
34        // Need to trigger the namespaced event to avoid triggering formUpdated
35        // when initializing the select.
36        .trigger('change.filterGuidelines');
37    },
38  };
39})(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.