Sha256: 35c30d409c797fdc0acb774b0d339120ff7b960e1010419463e3aa69921366fa
Contents?: true
Size: 1.07 KB
Versions: 79
Compression:
Stored size: 1.07 KB
Contents
Blacklight.onLoad(function() { // toggle button on or off based on boxes being clicked $(".batch_document_selector, .batch_document_selector_all").bind('click', function(e) { var n = $(".batch_document_selector:checked").length; if (n>0 || ($('input#check_all').length && $('input#check_all')[0].checked)) { $('.sort-toggle').hide(); } else { $('.sort-toggle').show(); } }); function show_details(item) { var array = item.id.split("expand_"); if (array.length > 1) { var docId = array[1]; $("#detail_" + docId + " .expanded-details").slideToggle(); $(item).toggleClass('glyphicon-chevron-right glyphicon-chevron-down'); } } // show/hide more information on the dashboard when clicking // plus/minus $('.glyphicon-chevron-right').on('click', function() { show_details(this); return false; }); $('a').filter( function() { return $(this).find('.glyphicon-chevron-right').length === 1; }).on('click', function() { show_details($(this).find(".glyphicon-chevron-right")[0]); return false; }); });
Version data entries
79 entries across 79 versions & 3 rubygems