mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-03 20:06:59 +00:00
383a81811d
Includes new ext.echo.alert module and new preference Change-Id: I7a4e78b033aa5e1ea18d1bfa2b6b0187930a6611
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 );
|