mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-04 04:09:00 +00:00
10 lines
416 B
JavaScript
10 lines
416 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 );
|