X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.debug%2Fdebug.js;h=32dbdc199eacd974cce54c96f8d1d8e1ff003cb0;hb=9ff8e0a94621ff441ba68f64de76c69a5b9c9319;hp=37c0fac771bc3354bfa3d08dea0544ec44bef972;hpb=8c96aec32cffaab96b2bd9dca206a99a13640545;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.debug/debug.js b/resources/src/mediawiki.debug/debug.js index 37c0fac771..32dbdc199e 100644 --- a/resources/src/mediawiki.debug/debug.js +++ b/resources/src/mediawiki.debug/debug.js @@ -1,4 +1,4 @@ -( function ( mw, $ ) { +( function () { 'use strict'; var debug, @@ -112,9 +112,15 @@ buildHtml: function () { var $container, $bits, panes, id, gitInfo; - $container = $( '
' ); + $container = $( '# | ' ).css( 'width', '4em' ) ) - .append( $( 'SQL | ' ) ) - .append( $( 'Time | ' ).css( 'width', '8em' ) ) - .append( $( 'Call | ' ).css( 'width', '18em' ) ) + .append( $( '' ).text( '#' ).css( 'width', '4em' ) ) + .append( $( ' | ' ).text( 'SQL' ) ) + .append( $( ' | ' ).text( 'Time' ).css( 'width', '8em' ) ) + .append( $( ' | ' ).text( 'Call' ).css( 'width', '18em' ) ) .appendTo( $table ); for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) { @@ -300,8 +306,8 @@ $( ' |
---|---|---|---|---|---|---|---|
' ).text( i + 1 ) ) .append( $( ' | ' ).text( query.sql ) ) - .append( $( ' | ' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ) ) - .append( $( ' | ' ).text( query[ 'function' ] ) ) + .append( $( ' | ' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ).addClass( 'stats' ) ) + .append( $( ' | ' ).text( query.function ) ) .appendTo( $table ); } @@ -375,7 +381,7 @@ file = this.data.includes[ i ]; $( ' | ||
' ).text( file.name ) ) - .append( $( ' | ' ).text( file.size ) ) + .append( $( ' | ' ).text( file.size ).addClass( 'nr' ) ) .appendTo( $table ); } @@ -387,4 +393,4 @@ debug.init(); } ); -}( mediaWiki, jQuery ) ); +}() ); |