Revert r56902 "(bug 18436) remove redundant (and disruptive to CSS) hardcoded "displa...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 30 Sep 2009 00:47:54 +0000 (00:47 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 30 Sep 2009 00:47:54 +0000 (00:47 +0000)
Totally broken; breaks at least Vector skin and any other which includes an initially-hidden div for the JS messages -- the div was no longer being unhidden.
Just use a !important in your custom style...

RELEASE-NOTES
skins/common/wikibits.js

index 70365c1..56057d5 100644 (file)
@@ -530,8 +530,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 20702) Parser functions can now be used correctly in
   MediaWiki:Missing-article
 * (bug 14117) "redirected from" is now also shown on foreign file redirects
-* (bug 18436) JavaScript-added AJAX messages (from the JS watch/unwatch, for
-  instance) no longer include a redundant "display:block" hardcoded style.
 * (bug 20802) Fixed thumb.php redirect handling
 * (bug 17747) Only display thumbnail column in file history if the image can
   be rendered.
index b62cbde..06bbff3 100644 (file)
@@ -940,6 +940,7 @@ function jsMsg( message, className ) {
        }
 
        messageDiv.setAttribute( 'id', 'mw-js-message' );
+       messageDiv.style.display = 'block';
        if( className ) {
                messageDiv.setAttribute( 'class', 'mw-js-message-'+className );
        }