1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +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:
lian
2017-07-07 11:05:53 +08:00
parent 94b7d8f9d5
commit 96e2340a81
6 changed files with 44 additions and 5 deletions

View File

@@ -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();