1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 03:19:01 +01:00

[ticket/12953] Page title not updated when notifications are marked as read

PHPBB3-12953
This commit is contained in:
Geolim4 2014-08-09 18:56:36 +02:00
parent c991b1d587
commit 39defd0b6b

View File

@ -134,6 +134,11 @@ phpbb.markNotifications = function(el, unreadCount) {
if (!unreadCount) {
$('#mark_all_notifications').remove();
}
// Update page title
$('title').text(
(unreadCount ? '(' + unreadCount + ')' : '') + $('title').text().replace(/(\(([0-9])\))/, '')
);
};
// This callback finds the post from the delete link, and removes it.