Merge "Check for local unread talk notifications in alert popup too"

This commit is contained in:
jenkins-bot 2016-07-22 01:54:32 +00:00 committed by Gerrit Code Review
commit 6fa22b5d49

View file

@ -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