mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 20:08:55 +00:00
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
This commit is contained in:
commit
7ae2ceb5cf
1 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,11 @@ phpbb.markNotifications = function(el, unreadCount) {
|
||||||
if (!unreadCount) {
|
if (!unreadCount) {
|
||||||
$('#mark_all_notifications').remove();
|
$('#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.
|
// This callback finds the post from the delete link, and removes it.
|
||||||
|
|
Loading…
Add table
Reference in a new issue