mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[notice] fixed bugs: 'undefined', repeated ajax requests on login page
This commit is contained in:
@@ -19,6 +19,11 @@ if ($('.messages')[0]) {
|
||||
$(function() {
|
||||
|
||||
var msg_ct = $("#msg-count");
|
||||
|
||||
// for login page
|
||||
if (msg_ct.length == 0) {
|
||||
return false;
|
||||
}
|
||||
// original title
|
||||
var orig_doc_title = document.title;
|
||||
var reqUnreadNum = function() {
|
||||
|
Reference in New Issue
Block a user