Merge pull request #6423 from marc1706/ticket/13291

[ticket/13291] Close notifications dropdown during mark all read
This commit is contained in:
Marc Alexander 2022-12-12 19:42:22 +01:00
commit 369ee44b6f
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -101,6 +101,7 @@ phpbb.addAjaxCallback('mark_topics_read', function(res, updateTopicLinks) {
phpbb.addAjaxCallback('notification.mark_all_read', function(res) { phpbb.addAjaxCallback('notification.mark_all_read', function(res) {
if (typeof res.success !== 'undefined') { if (typeof res.success !== 'undefined') {
phpbb.markNotifications($('#notification_list li.bg2'), 0); phpbb.markNotifications($('#notification_list li.bg2'), 0);
phpbb.toggleDropdown.call($('#notification_list_button'));
phpbb.closeDarkenWrapper(3000); phpbb.closeDarkenWrapper(3000);
} }
}); });