mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-24 10:49:37 +00:00
Merge "Remove allTalkRead listener for the messages popup"
This commit is contained in:
commit
ddc4738687
|
@ -91,13 +91,6 @@
|
|||
mw.echo.ui.messageWidget.badgeButton.debouncedUpdateThemeClasses();
|
||||
// Replace the link button with the ooui button
|
||||
$existingMessageLink.parent().replaceWith( mw.echo.ui.messageWidget.$element );
|
||||
|
||||
messageModelManager.on( 'allTalkRead', function () {
|
||||
// If there was a talk page notification, get rid of it
|
||||
$( '#pt-mytalk a' )
|
||||
.removeClass( 'mw-echo-alert' )
|
||||
.text( mw.msg( 'mytalk' ) );
|
||||
} );
|
||||
}
|
||||
unreadAlertCounter = new mw.echo.dm.UnreadNotificationCounter( echoApi, 'alert', maxNotificationCount );
|
||||
alertModelManager = new mw.echo.dm.ModelManager( unreadAlertCounter, { type: 'alert' } );
|
||||
|
|
Loading…
Reference in a new issue