Changeset 41b43ba in github


Ignore:
Timestamp:
Nov 28, 2008 2:01:35 PM (4 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
2fd9750
Parents:
ba1c48f
Message:

Don't set client busy when automatically checking for new messages (#1485276)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r69ad1e8 r41b43ba  
    367367    { 
    368368    if (this.env.keep_alive && !this.env.framed && this.task=='mail' && this.gui_objects.mailboxlist) 
    369       this._int = setInterval(function(){ ref.check_for_recent(); }, this.env.keep_alive * 1000); 
     369      this._int = setInterval(function(){ ref.check_for_recent(false); }, this.env.keep_alive * 1000); 
    370370    else if (this.env.keep_alive && !this.env.framed && this.task!='login') 
    371371      this._int = setInterval(function(){ ref.send_keep_alive(); }, this.env.keep_alive * 1000); 
     
    816816       
    817817      case 'checkmail': 
    818         this.check_for_recent(); 
     818        this.check_for_recent(true); 
    819819        break; 
    820820       
     
    39173917 
    39183918  // send periodic request to check for recent messages 
    3919   this.check_for_recent = function() 
     3919  this.check_for_recent = function(setbusy) 
    39203920    { 
    39213921    if (this.busy) 
    39223922      return; 
    39233923 
    3924     this.set_busy(true, 'checkingmail'); 
     3924    if (setbusy) 
     3925      this.set_busy(true, 'checkingmail'); 
     3926 
    39253927    this.http_request('check-recent', (this.env.search_request ? '_search='+this.env.search_request+'&' : '') + '_t='+(new Date().getTime()), true); 
    39263928    }; 
Note: See TracChangeset for help on using the changeset viewer.