1// 2// SIDEBAR ACCORDIONS BORDER 3// 4 5$(document).ready(function() { 6 $(document.body).on('click', 'a.collapse_handle', function(e) { 7 e.preventDefault(); 8 var $gadget = $(this).parents('div.gadget'), 9 $content = $gadget.find('.content'); 10 11 if($content.is(':hidden')) { 12 $gadget.removeClass('collapsed'); 13 $content.slideDown('fast', function() { 14 //load collapsed gadget when page was initialised 15 var ind = $gadget.attr('data-gadget_index'); 16 //console.log(ind); 17 if(ind){ 18 gadgetLoader.loadSingle(APPINIT.gadgets[ind].url, APPINIT.gadgets[ind].data); 19 $gadget.removeAttr('data-gadget_index'); 20 } 21 saveGadgetState(); 22 }); 23 } 24 else { 25 $content.slideUp('fast', function() { 26 $gadget.addClass('collapsed'); 27 saveGadgetState(); 28 }); 29 } 30 }); 31});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.