Index: trunk/phase3/resources/mediawiki/mediawiki.debug.js |
— | — | @@ -243,11 +243,12 @@ |
244 | 244 | |
245 | 245 | $table = $( '<table id="mw-debug-querylist"></table>' ); |
246 | 246 | |
247 | | - // Widths on table cells and columns behave weird in some browsers like Chrome, |
248 | | - // in that, contrary to the W3 box model, padding does not increase cells having a fixed width |
249 | | - $('<colgroup>').css( 'width', /*padding=*/20 + ( String( this.data.queries.length ).length*/*fontSize*/11 ) ).appendTo( $table ); |
250 | | - $('<colgroup>').appendTo( $table ); |
251 | | - $('<colgroup>').css( 'width', 350 ).appendTo( $table ); |
| 247 | + $( '<tr>' ) |
| 248 | + .append( $('<th>#</th>').css( 'width', '4em' ) ) |
| 249 | + .append( $('<th>SQL</th>') ) |
| 250 | + .append( $('<th>Time</th>').css( 'width', '8em' ) ) |
| 251 | + .append( $('<th>Call</th>').css( 'width', '12em' ) ) |
| 252 | + .appendTo( $table ); |
252 | 253 | |
253 | 254 | for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) { |
254 | 255 | query = this.data.queries[i]; |
— | — | @@ -255,11 +256,9 @@ |
256 | 257 | $( '<tr>' ) |
257 | 258 | .append( $( '<td>' ).text( i + 1 ) ) |
258 | 259 | .append( $( '<td>' ).text( query.sql ) ) |
259 | | - .append( $( '<td>' ) |
260 | | - .append( $( '<span class="stats"></span>' ).text( '(' + query.time.toFixed( 4 ) + 'ms) ' ) ) |
261 | | - .append( query['function'] ) |
262 | | - ) |
263 | | - .appendTo( $table ); |
| 260 | + .append( $( '<td class="stats">' ).text( query.time.toFixed( 4 )+ 'ms' ) ) |
| 261 | + .append( $( '<td>' ).text( query['function'] ) ) |
| 262 | + .appendTo( $table ); |
264 | 263 | } |
265 | 264 | |
266 | 265 | |