mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
make the connection manager poll
This commit is contained in:
parent
e99dd03dcc
commit
9907909b58
@ -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
|
||||
});
|
||||
|
@ -24,9 +24,6 @@ Deluge.Ui = {
|
||||
});
|
||||
|
||||
Deluge.SideBar = this.MainPanel.items.get('sidebar');
|
||||
Deluge.SideBar.on('collapse', function(bar) {
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
update: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user