mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
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:
parent
32d8991013
commit
091587142d
|
@ -78,6 +78,7 @@ $wgResourceModules += array(
|
|||
'echo-notification-placeholder',
|
||||
'tooltip-pt-notifications-alert',
|
||||
'tooltip-pt-notifications-message',
|
||||
'mytalk',
|
||||
'mypreferences'
|
||||
),
|
||||
'targets' => array( 'desktop' ),
|
||||
|
|
|
@ -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' ) );
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue