mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
update user notifications
1. use cache to store user unseen notifications count 1. add UNREAD_NOTIFICATIONS_REQUEST_INTERVAL
This commit is contained in:
@@ -72,7 +72,7 @@ define([
|
||||
};
|
||||
reqUnreadNum();
|
||||
// request every 30s
|
||||
var reqInterval = setInterval(reqUnreadNum, 30*1000);
|
||||
var reqInterval = setInterval(reqUnreadNum, app.pageOptions.unread_notifications_request_interval*1000);
|
||||
|
||||
$('#notice-icon').click(function() {
|
||||
_this.toggle();
|
||||
|
Reference in New Issue
Block a user