mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
added API call for total unread topics; moved unread notification parsing to client side
also fixed a bug where the new notification icon glow would disappear on page refresh even if there were existing notifications.
This commit is contained in:
@@ -81,9 +81,9 @@ var utils = require('./../public/src/utils.js'),
|
||||
var title;
|
||||
|
||||
if (err) title = global.config.title || 'NodeBB';
|
||||
else title = (values.notifCount > 0 ? '(' + values.notifCount + ') ' : '') + (values.title ? values.title + ' | ' : '') + (global.config.title || 'NodeBB');
|
||||
else title = (values.title ? values.title + ' | ' : '') + (global.config.title || 'NodeBB');
|
||||
|
||||
callback(null, title);
|
||||
callback(null, title, values.notifCount);
|
||||
});
|
||||
},
|
||||
parseFragment: function(urlFragment, callback) {
|
||||
|
||||
Reference in New Issue
Block a user