Merge "Fix mw.notify not being visible if first loaded when scrolled down"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 15 Oct 2015 20:05:19 +0000 (20:05 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 15 Oct 2015 20:05:19 +0000 (20:05 +0000)
resources/src/mediawiki/mediawiki.notification.js

index f361ec8..eeb7bb3 100644 (file)
                        // 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 );
                offset = $area.offset();
+               $area.hide();
 
                function updateAreaMode() {
                        var isFloating = $window.scrollTop() > offset.top;