Sha256: b7b77a206674a14d01a3b928886c1f22a9f8297ad66e236dcecdc3d0b0972770
Contents?: true
Size: 640 Bytes
Versions: 9
Compression:
Stored size: 640 Bytes
Contents
//= require blacklight/core (function($) { // Used for sort-by and per-page controls, hide the submit button // and make the select auto-submit Blacklight.do_select_submit = function() { $(Blacklight.do_select_submit.selector).each(function() { var select = $(this); select.closest("form").find("input[type=submit]").hide(); select.bind("change", function() { this.form.submit(); }); }); }; Blacklight.do_select_submit.selector = "form.sort select, form.per_page select"; $(document).ready(function() { Blacklight.do_select_submit(); }); })(jQuery);
Version data entries
9 entries across 9 versions & 1 rubygems