Sha256: ff8d610faaf8a8a6a7f991cd34f1fd14da98190536858066be28a254ae23d5ce
Contents?: true
Size: 587 Bytes
Versions: 22
Compression:
Stored size: 587 Bytes
Contents
Spotlight.onLoad(function() { $(".visiblity_toggle").blCheckboxSubmit({ //css_class is added to elements added, plus used for id base cssClass: "toggle_visibility", //success is called at the end of the ajax success callback success: function (isPublic){ // We store the selector of the label to toggle in a data attribute in the form var docTarget = $($(this).data("label-toggle-target")); if ( isPublic ) { docTarget.removeClass("blacklight-private"); } else { docTarget.addClass("blacklight-private"); } } }); });
Version data entries
22 entries across 22 versions & 1 rubygems