mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-15 03:35:01 +00:00
63c1d25d3a
This reverts commit b9e5b2f64a
.
Change-Id: I64cd03dd0789f482221f8f38bbf9a034025e45f9
10 lines
417 B
JavaScript
10 lines
417 B
JavaScript
( function ( $, mw ) {
|
|
'use strict';
|
|
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 );
|
|
$( '#pt-mytalk a' ).addClass( 'mw-echo-alert' );
|
|
mw.config.set( 'echoNewMsgAlertDisplayed', true );
|
|
}
|
|
} )( jQuery, mediaWiki );
|