mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
[misc] fix
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user