make the connection manager poll

This commit is contained in:
Damien Churchill 2009-02-16 01:06:08 +00:00
parent e99dd03dcc
commit 9907909b58
2 changed files with 6 additions and 3 deletions

View File

@ -1,11 +1,17 @@
Deluge.Connections = {
onClose: function(e) {
$clear(Deluge.Connections.running);
},
onConnect: function(e) {
},
onShow: function(window) {
Deluge.Connections.running = Deluge.Connections.runCheck.periodical(2000);
Deluge.Connections.runCheck();
},
runCheck: function() {
Deluge.Client.web.get_hosts({
onSuccess: Deluge.Connections.onGetHosts
});

View File

@ -24,9 +24,6 @@ Deluge.Ui = {
});
Deluge.SideBar = this.MainPanel.items.get('sidebar');
Deluge.SideBar.on('collapse', function(bar) {
});
},
update: function() {