Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.fn.sort = function() { return this.pushStack( [].sort.apply( this, arguments ), []); };
- $('.djDebugSql').closest('tr').each(function(i) { this.setAttribute('rel',i); });
- function dtsql(o){
- switch (o) {
- case 'clean' : $('.djDebugSql').each(function(){ $(this).contents()[1].nodeValue = ' '; }); break;
- case 'time' : tbody = $('.djDebugSql:eq(0)').closest('tbody'); tbody.children('tr').sort(function(a,b){ return $(b).children('td:eq(0)').html() - $(a).children('td:eq(0)').html() }).appendTo(tbody);
- break;
- }
- }
- dtsql('time');
Add Comment
Please, Sign In to add comment