mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Merge "Check for local unread talk notifications in alert popup too"
This commit is contained in:
commit
6fa22b5d49
|
@ -119,6 +119,13 @@
|
|||
}
|
||||
);
|
||||
|
||||
alertModelManager.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' ) );
|
||||
} );
|
||||
|
||||
// HACK: avoid late debouncedUpdateThemeClasses
|
||||
mw.echo.ui.alertWidget.badgeButton.debouncedUpdateThemeClasses();
|
||||
// Replace the link button with the ooui button
|
||||
|
|
Loading…
Reference in a new issue