aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-10 13:13:55 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-10 13:13:55 +0200
commit7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c (patch)
tree3319cb79de29219f50be66fd1e804269935d46ab
parent1f6b9628e78f7a82eb2a3a455ef4a0448999dd68 (diff)
parent39defd0b6b5b8f5ff2529df8aa8925d9378855cd (diff)
downloadforums-7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c.tar
forums-7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c.tar.gz
forums-7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c.tar.bz2
forums-7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c.tar.xz
forums-7ae2ceb5cf42123c82dd0a8f6d3a6a8d56be2d9c.zip
Merge pull request #2855 from Geolim4/ticket/12953
[ticket/12953] Page title not updated when notifications are marked as read * Geolim4/ticket/12953: [ticket/12953] Page title not updated when notifications are marked as read
-rw-r--r--phpBB/styles/prosilver/template/ajax.js5
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.