1 2jQuery(document).ready(function($) { 3 4 function preloader() { 5 $('.dropfiles-loading').css('background',"url("+dropfilesBaseUrl+ "components/com_dropfiles/assets/images/loadingfile.svg) no-repeat center center"); 6 } 7 function addLoadEvent(func) { 8 var oldonload = window.onload; 9 if (typeof window.onload != 'function') { 10 window.onload = func; 11 } else { 12 window.onload = function() { 13 if (oldonload) { 14 oldonload(); 15 } 16 func(); 17 } 18 } 19 } 20 21 addLoadEvent(preloader); 22 23 $(document).on('click', '.dropfiles-open-tree', function (e) { 24 var $this = $(this); 25 var tree = $this.parent().find('.dropfiles-foldertree'); 26 27 // tree.toggleClass('tree-open'); 28 if (tree.hasClass('tree-open')) { 29 tree.slideUp(500).removeClass('tree-open'); 30 } else { 31 tree.slideDown(500).addClass('tree-open'); 32 } 33 }); 34 $(document).on('dropfiles:category-loading', function (e) { 35 var tree2 = $('.dropfiles-foldertree'); 36 // Hide all opened left tree 37 if (tree2.hasClass('tree-open')) { 38 tree2.slideUp(500).removeClass('tree-open'); 39 } 40 }); 41}); 42 43function dropfiles_remove_loading(el) { 44 jQuery('.dropfiles-loading', el).remove(); 45}
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.