mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Remove "Talk:" prefix from "You have new messages"
Bug: 49324 Change-Id: I51d9fc5c891d4489fcb5bce74b0428575f1df7f6
This commit is contained in:
parent
0024b000ff
commit
790f4bee9e
1
Echo.php
1
Echo.php
|
@ -212,7 +212,6 @@ $wgResourceModules += array(
|
|||
),
|
||||
'messages' => array(
|
||||
'echo-new-messages',
|
||||
'colon-separator',
|
||||
),
|
||||
),
|
||||
'ext.echo.badge' => $echoResourceTemplate + array(
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
// TODO: What is this extra echoNewMsgAlertDisplayed check for? This should only run once
|
||||
// and that variable isn't used anywhere else in the repository.
|
||||
if ( mw.config.get( 'wgUserNewMsgRevisionId' ) && !mw.config.get( 'echoNewMsgAlertDisplayed' ) ) {
|
||||
var alertMessage = mw.html.escape( mw.msg( 'colon-separator' ) + mw.msg( 'echo-new-messages' ) );
|
||||
|
||||
$( '#pt-mytalk a' )
|
||||
.append( alertMessage )
|
||||
.text( mw.msg( 'echo-new-messages' ) )
|
||||
.addClass( 'mw-echo-alert' );
|
||||
|
||||
mw.config.set( 'echoNewMsgAlertDisplayed', true );
|
||||
|
|
Loading…
Reference in a new issue