1!function ($) { 2 3 var isReady = false; 4 var ready = function() { 5 // Must wait for all stuff to init things 6 if (isReady) { return; } 7 isReady = true; 8 9 // Register to other ajax-refresh 10 $(document).on('jalios:refresh', function(event){ 11 var refresh = $.jalios.Event.match(event, 'refresh', 'after') 12 if (!refresh){ return; } 13 setup(); 14 }); 15 16 // Then setup 17 setup(); 18 } 19 20 var setup = function() { 21 // Change chevron icons 22 $('.jalios-accordion', document).on('shown.bs.collapse hidden.bs.collapse', function(e) { 23 var $panel = $(e.target); 24 var $panelHeader = $panel.siblings('.panel-heading'); 25 var toggleClass = $panel.closest('.jalios-accordion').data('jalios-collapse-toggle'); 26 $panelHeader.find('.collapse-action .jalios-icon').toggleClass(toggleClass); 27 $panelHeader.find('.collapse-action').toggleClass('dropup'); 28 }); 29 } 30 31 // ------------------------------------------ 32 // READY 33 // ------------------------------------------ 34 35 // Plugin initialization on DOM ready 36 $(document).on('jalios:ready', ready); 37 38}(window.jQuery);
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.