Sha256: 540c6153c2fb4e75a330fb33485873a9418716eba7edff3090dac147a850b2fa
Contents?: true
Size: 750 Bytes
Versions: 84
Compression:
Stored size: 750 Bytes
Contents
//= require blacklight/core //= require blacklight/checkbox_submit (function($) { //change form submit toggle to checkbox Blacklight.do_bookmark_toggle_behavior = function() { $(Blacklight.do_bookmark_toggle_behavior.selector).bl_checkbox_submit({ //css_class is added to elements added, plus used for id base css_class: "toggle_bookmark", success: function(checked, response) { if (response.bookmarks) { $('[data-role=bookmark-counter]').text(response.bookmarks.count); } } }); }; Blacklight.do_bookmark_toggle_behavior.selector = "form.bookmark_toggle"; Blacklight.onLoad(function() { Blacklight.do_bookmark_toggle_behavior(); }); })(jQuery);
Version data entries
84 entries across 84 versions & 1 rubygems