1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

[misc] fix

This commit is contained in:
llj
2016-07-20 14:20:19 +08:00
parent 603f88c6ab
commit 2f5cf202d9
8 changed files with 20 additions and 12 deletions

View File

@@ -44,12 +44,15 @@ define([
$num.addClass('hide');
document.title = _this.orig_doc_title;
}
},
error: function() { // e.g. 401 UNAUTHORIZED
clearInterval(reqInterval); // stop sending requests
}
});
};
reqUnreadNum();
// request every 30s
setInterval(reqUnreadNum, 30*1000);
var reqInterval = setInterval(reqUnreadNum, 30*1000);
$('#notice-icon').click(function() {
_this.toggle();