From: Roan Kattouw Date: Fri, 5 Sep 2014 18:40:27 +0000 (-0700) Subject: mediawiki.notification: Also hide #mw-notification-area upon creation X-Git-Tag: 1.31.0-rc.0~14147^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=2aebe8054eed2516ac06c62101f2793f29c416aa;p=lhc%2Fweb%2Fwiklou.git mediawiki.notification: Also hide #mw-notification-area upon creation 6c5b246 made it so #mw-notification-area was hidden when the last notification was dismissed, but it still left it visible when initially creating it. This meant that if you used mw.notify(), you had no problems, but if you loaded the mediawiki.notification module manually and called it manually, you would still get a 12px-tall click-stealing invisible div until the first notification was displayed. Bug: 52659 Change-Id: Ibec399ac9ef083036aa2b31a38bcc1bc36b87d96 --- diff --git a/resources/src/mediawiki/mediawiki.notification.js b/resources/src/mediawiki/mediawiki.notification.js index 79ec310671..1968aa9467 100644 --- a/resources/src/mediawiki/mediawiki.notification.js +++ b/resources/src/mediawiki/mediawiki.notification.js @@ -386,7 +386,8 @@ // on links from hiding a notification. .on( 'click', 'a', function ( e ) { e.stopPropagation(); - } ); + } ) + .hide(); // Prepend the notification area to the content area and save it's object. mw.util.$content.prepend( $area );