From 62c2d743228a12b5d6921831a49a3c8789f3f34f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 17 Jan 2012 09:58:00 +0000 Subject: [PATCH] dbg toolbar query list * add headers (using instead of * hardcoded width that looks fine to me. 4em is enoug for query count * split function name / execution time in their own column --- resources/mediawiki/mediawiki.debug.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/resources/mediawiki/mediawiki.debug.js b/resources/mediawiki/mediawiki.debug.js index 641ee12236..f25d249414 100644 --- a/resources/mediawiki/mediawiki.debug.js +++ b/resources/mediawiki/mediawiki.debug.js @@ -243,11 +243,12 @@ $table = $( '
' ); - // Widths on table cells and columns behave weird in some browsers like Chrome, - // in that, contrary to the W3 box model, padding does not increase cells having a fixed width - $('').css( 'width', /*padding=*/20 + ( String( this.data.queries.length ).length*/*fontSize*/11 ) ).appendTo( $table ); - $('').appendTo( $table ); - $('').css( 'width', 350 ).appendTo( $table ); + $( '' ) + .append( $('#').css( 'width', '4em' ) ) + .append( $('SQL') ) + .append( $('Time').css( 'width', '8em' ) ) + .append( $('Call').css( 'width', '12em' ) ) + .appendTo( $table ); for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) { query = this.data.queries[i]; @@ -255,11 +256,9 @@ $( '' ) .append( $( '' ).text( i + 1 ) ) .append( $( '' ).text( query.sql ) ) - .append( $( '' ) - .append( $( '' ).text( '(' + query.time.toFixed( 4 ) + 'ms) ' ) ) - .append( query['function'] ) - ) - .appendTo( $table ); + .append( $( '' ).text( query.time.toFixed( 4 )+ 'ms' ) ) + .append( $( '' ).text( query['function'] ) ) + .appendTo( $table ); } -- 2.20.1