PageSourceSearch

https://www.nssga.org/modules/composer/better_exposed_filters/js/bef_datepickers.js?tlkb8p

js nssga.org collected 2026-10-02 06:21:04 UTC 605 bytes, 25 lines download raw bytes

1/**
2 * @file
3 * bef_datepickers.js
4 *
5 * Provides jQueryUI Datepicker integration with Better Exposed Filters.
6 */
7
8(function ($, Drupal, drupalSettings) {
9  /*
10   * Helper functions
11   */
12  Drupal.behaviors.betterExposedFiltersDatePickers = {
13    attach: function (context, settings) {
14
15      const datepickers = document.querySelectorAll('.bef-datepicker');
16      datepickers.forEach(function (input) {
17        const defaultValue = input.getAttribute('default_value');
18
19        if (defaultValue) {
20          input.value = defaultValue;
21        }
22      });
23    }
24  };
25})(jQuery, Drupal, drupalSettings);

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.