{"size": 463, "ext": "js", "max_stars_repo_path": "web/themes/custom/goodway/src/js/auto-submit-filters.js", "max_stars_repo_name": "bmcclure/topfloor-commerce-demo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/themes/custom/goodway/src/js/auto-submit-filters.js", "max_issues_repo_name": "bmcclure/topfloor-commerce-demo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/themes/custom/goodway/src/js/auto-submit-filters.js", "max_forks_repo_name": "bmcclure/topfloor-commerce-demo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.15, "max_line_length": 74, "alphanum_fraction": 0.6155507559}
(function ($) {
  'use strict';

  function setupAutoSubmitFilter(element, form) {
    form.on('change', element, function () {
      $('.form-submit', form).click();
    });
  }

  Drupal.behaviors.autoSubmitFilters = {
    attach: function (context, settings) {
      var form = $('.js-autoSubmit form').not('.js-autoSubmit-processed');

      setupAutoSubmitFilter('.form-select', form);

      form.addClass('js-autoSubmit-processed');
    }
  };
}(jQuery));
