PageSourceSearch

https://mysparkly.com/sites/all/modules/custom/clientside_validation/clientside_validation.chosen.js?t073bu

js mysparkly.com collected 2026-10-08 10:46:34 UTC 1,140 bytes, 34 lines download raw bytes

1
2(function (Drupal, $) {
3  Drupal.behaviors.cvChosen = {
4    attach: function () {
5      $(document).bind('clientsideValidationAlterOptions', function (e, options, form_id) {
6        if (!Drupal.settings.clientsideValidation.forms[form_id].includeHidden) {
7          // Do not validate hidden fields. Fix chosen instances.
8          $('#' + form_id).find('select.chosen-processed').each(function () {
9            var $select = $(this);
10            // jQuery validate binds to the click event for selects, not the
11            // change event.
12            $select.bind('change', function() {
13              $(this).trigger('click');
14            })
15            var chosen = $select.data('chosen');
16            if(!chosen.container.is(':hidden')) {
17              options.ignore = fixIgnore(options.ignore, $select.attr('id'));
18            }
19          });
20        }
21      });
22
23      var fixIgnore = function (ignore, id) {
24        var ignores = ignore.split(',');
25        for (var i = 0; i < ignores.length; i++) {
26          ignores[i] += ':not(#' + id + ')';
27        }
28        return ignores.join(',');
29      };
30    }
31  };
32})(Drupal, jQuery);
33
34

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.