From 39defd0b6b5b8f5ff2529df8aa8925d9378855cd Mon Sep 17 00:00:00 2001 From: Geolim4 Date: Sat, 9 Aug 2014 18:56:36 +0200 Subject: [PATCH] [ticket/12953] Page title not updated when notifications are marked as read PHPBB3-12953 --- phpBB/styles/prosilver/template/ajax.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 649a384418..63efe5f8ae 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -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.