destroy: function() {
var me = this;
- me.load_task.cancel();
- Proxmox.data.UpdateQueue.unqueue(me);
+ me.stopUpdate();
me.callParent();
},
}
if (Proxmox.Utils.authOK()) {
- Proxmox.data.UpdateQueue.queue(me, function(runtime, success) {
+ var start = new Date();
+ me.load(function() {
+ var runtime = (new Date()) - start;
var interval = config.interval + runtime*2;
load_task.delay(interval, run_load_task);
});
Ext.apply(config, {
startUpdate: function() {
me.isStopped = false;
- run_load_task();
+ // run_load_task(); this makes problems with chrome
+ load_task.delay(1, run_load_task);
},
stopUpdate: function() {
me.isStopped = true;
load_task.cancel();
- Proxmox.data.UpdateQueue.unqueue(me);
}
});