From: Trevor Parscal Date: Thu, 28 Apr 2011 14:58:41 +0000 (+0000) Subject: Applied patch supplied in bug #28699 to prevent obscuring content when consoless... X-Git-Tag: 1.31.0-rc.0~30524 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=305f1f345c41d3f3f50dcae392f576d5c152a0b3;p=lhc%2Fweb%2Fwiklou.git Applied patch supplied in bug #28699 to prevent obscuring content when consoless browsers get a console rendered for them by mediawiki.log. Also adds pre-wrap CSS rule to allow \n to render properly in the console. Thanks for the patch! --- diff --git a/resources/mediawiki/mediawiki.log.js b/resources/mediawiki/mediawiki.log.js index 185028b0cd..c0f8738034 100644 --- a/resources/mediawiki/mediawiki.log.js +++ b/resources/mediawiki/mediawiki.log.js @@ -44,8 +44,10 @@ 'height': '150px', 'background-color': 'white', 'border-top': 'solid 2px #ADADAD' - } ) - .appendTo( 'body' ); + } ); + $( 'body' ) + .css( 'padding-bottom', '150px' ) // don't hide anything + .append( $log ); } $log.append( $( '
' ) @@ -53,10 +55,11 @@ 'border-bottom': 'solid 1px #DDDDDD', 'font-size': 'small', 'font-family': 'monospace', + 'white-space': 'pre-wrap', 'padding': '0.125em 0.25em' } ) .text( string ) - .append( '[' + time + ']' ) + .prepend( '[' + time + ']' ) ); } };