diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-10 13:16:15 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-10 13:16:15 +0200 |
commit | 3432257c1c0abd34efbd4ba335ea7e8e7a3a1a2e (patch) | |
tree | f8279e7342beb133327539b40b8572be9527aaf2 | |
parent | 4056b84f6042602db8e407d50b6bf449cccd01e0 (diff) | |
parent | 7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c (diff) | |
download | forums-3432257c1c0abd34efbd4ba335ea7e8e7a3a1a2e.tar forums-3432257c1c0abd34efbd4ba335ea7e8e7a3a1a2e.tar.gz forums-3432257c1c0abd34efbd4ba335ea7e8e7a3a1a2e.tar.bz2 forums-3432257c1c0abd34efbd4ba335ea7e8e7a3a1a2e.tar.xz forums-3432257c1c0abd34efbd4ba335ea7e8e7a3a1a2e.zip |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[ticket/12953] Page title not updated when notifications are marked as read
-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. |