summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-28 19:01:35 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-28 19:01:35 +0000
commit934b356caf07ef190c84c7729350506c04673645 (patch)
treeec5705fc28cd18095bbb049da438dda1bf8dd178
parent64f150f48931d5c92bc8b2089bba0c0bcf6c5ed3 (diff)
Don't set client busy when automatically checking for new messages (#1485276)
git-svn-id: https://svn.roundcube.net/trunk@2098 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 5d0129231..f301e559c 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -366,7 +366,7 @@ function rcube_webmail()
this.start_keepalive = function()
{
if (this.env.keep_alive && !this.env.framed && this.task=='mail' && this.gui_objects.mailboxlist)
- this._int = setInterval(function(){ ref.check_for_recent(); }, this.env.keep_alive * 1000);
+ this._int = setInterval(function(){ ref.check_for_recent(false); }, this.env.keep_alive * 1000);
else if (this.env.keep_alive && !this.env.framed && this.task!='login')
this._int = setInterval(function(){ ref.send_keep_alive(); }, this.env.keep_alive * 1000);
}
@@ -815,7 +815,7 @@ function rcube_webmail()
break;
case 'checkmail':
- this.check_for_recent();
+ this.check_for_recent(true);
break;
case 'compose':
@@ -3916,12 +3916,14 @@ function rcube_webmail()
};
// send periodic request to check for recent messages
- this.check_for_recent = function()
+ this.check_for_recent = function(setbusy)
{
if (this.busy)
return;
- this.set_busy(true, 'checkingmail');
+ if (setbusy)
+ this.set_busy(true, 'checkingmail');
+
this.http_request('check-recent', (this.env.search_request ? '_search='+this.env.search_request+'&' : '') + '_t='+(new Date().getTime()), true);
};