Changeset 221:3dae30fff28b


Ignore:
Timestamp:
23/07/2010 17:51:52 (7 weeks ago)
Author:
tonio
Branch:
default
Message:

fix: avoid timers stacking...

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/webmail/templates/index.html

    r220 r221  
    9494  loadCompose = function(event) { 
    9595    event.stop(); 
    96     $clear(rtimer); 
    9796    current_anchor.baseurl("compose").update(); 
    9897  } 
     
    116115  
    117116  var rtimer = null;   
     117 
     118  window.addEvent("pageRefresh", function() { 
     119    $clear(rtimer); 
     120  }); 
     121 
    118122  refreshFolder = function() { 
    119123    var query = current_anchor.serialized.substring(1); 
     
    136140      obj = $(event.target); 
    137141    } 
    138     $clear(rtimer); 
    139142    current_anchor.parse_string(gethref(obj), true).setparams(navparams); 
    140143    current_anchor.update(); 
  • static/js/common.js

    r217 r221  
    114114 
    115115    this.update = function(force) { 
     116        window.fireEvent("pageRefresh"); 
    116117        location.hash = this.serialize(); 
    117118        if ($defined(force)) { 
Note: See TracChangeset for help on using the changeset viewer.