1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

Merge branch 'develop-ascraeus' into develop

* develop-ascraeus:
  [ticket/12953] Page title not updated when notifications are marked as read
This commit is contained in:
Joas Schilling 2014-08-10 13:16:15 +02:00
commit 3432257c1c

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.