diff options
| author | Geolim4 <contact@geolim4.com> | 2014-08-09 18:56:36 +0200 |
|---|---|---|
| committer | Geolim4 <contact@geolim4.com> | 2014-08-09 18:56:36 +0200 |
| commit | 39defd0b6b5b8f5ff2529df8aa8925d9378855cd (patch) | |
| tree | 3516172fb8e93bd3d8ca31c41c0e1e6fd337a2af | |
| parent | c991b1d587e8ab3b080e2e6762646efe00e05bc5 (diff) | |
| download | forums-39defd0b6b5b8f5ff2529df8aa8925d9378855cd.tar forums-39defd0b6b5b8f5ff2529df8aa8925d9378855cd.tar.gz forums-39defd0b6b5b8f5ff2529df8aa8925d9378855cd.tar.bz2 forums-39defd0b6b5b8f5ff2529df8aa8925d9378855cd.tar.xz forums-39defd0b6b5b8f5ff2529df8aa8925d9378855cd.zip | |
[ticket/12953] Page title not updated when notifications are marked as read
PHPBB3-12953
| -rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 5 |
1 files changed, 5 insertions, 0 deletions
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. |
