Sha256: a01922e5dc0eb92adfe5006242d24c86fa4aff31bc62b9a65bef96bbb225a6a9
Contents?: true
Size: 758 Bytes
Versions: 13
Compression:
Stored size: 758 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.update_css_dropdown = function(dropdown, prefix, suffix) { $(dropdown).find('ul.css-dropdown ul a').click (function (e) { selection_key = $(this).text(); $(dropdown).find('ul.css-dropdown li.btn>a').html(prefix + selection_key + suffix); }); } Blacklight.onLoad(function() { $('#sort-form').hide(); $('#sort-dropdown').show(); Blacklight.update_css_dropdown('#sort-dropdown', "Sort by ", "") $('#per_page-form').hide(); $('#per_page-dropdown').show(); Blacklight.update_css_dropdown('#per_page-dropdown', '', '') }); })(jQuery);
Version data entries
13 entries across 13 versions & 1 rubygems