mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-01 10:56:44 +00:00
790f4bee9e
Bug: 49324 Change-Id: I51d9fc5c891d4489fcb5bce74b0428575f1df7f6
13 lines
475 B
JavaScript
13 lines
475 B
JavaScript
( function ( $, mw ) {
|
|
'use strict';
|
|
// 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' ) ) {
|
|
$( '#pt-mytalk a' )
|
|
.text( mw.msg( 'echo-new-messages' ) )
|
|
.addClass( 'mw-echo-alert' );
|
|
|
|
mw.config.set( 'echoNewMsgAlertDisplayed', true );
|
|
}
|
|
} )( jQuery, mediaWiki );
|