Replace the orange bar with talk-page link, don't remove it

The orange bar is replacing the 'talk' link; when it is removed, it
should actually be replaced back to being a regular 'talk' page
and not be completely removed from the page.

Change-Id: I930d321952e85ee79acbbd162ab763b4eea63ff1
This commit is contained in:
Moriel Schottlender 2015-09-22 15:36:14 -07:00
parent 32d8991013
commit 091587142d
2 changed files with 4 additions and 1 deletions

View file

@ -78,6 +78,7 @@ $wgResourceModules += array(
'echo-notification-placeholder',
'tooltip-pt-notifications-alert',
'tooltip-pt-notifications-message',
'mytalk',
'mypreferences'
),
'targets' => array( 'desktop' ),

View file

@ -61,7 +61,9 @@
mw.echo.ui.messageWidget.getModel().on( 'allRead', function () {
// If there was a talk page notification, get rid of it
$( '#pt-mytalk' ).detach();
$( '#pt-mytalk a' )
.removeClass( 'mw-echo-alert' )
.text( mw.msg( 'mytalk' ) );
} );
}