mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 20:44:50 +00:00
make the connection manager poll
This commit is contained in:
parent
e99dd03dcc
commit
9907909b58
@ -1,11 +1,17 @@
|
|||||||
Deluge.Connections = {
|
Deluge.Connections = {
|
||||||
onClose: function(e) {
|
onClose: function(e) {
|
||||||
|
$clear(Deluge.Connections.running);
|
||||||
},
|
},
|
||||||
|
|
||||||
onConnect: function(e) {
|
onConnect: function(e) {
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function(window) {
|
onShow: function(window) {
|
||||||
|
Deluge.Connections.running = Deluge.Connections.runCheck.periodical(2000);
|
||||||
|
Deluge.Connections.runCheck();
|
||||||
|
},
|
||||||
|
|
||||||
|
runCheck: function() {
|
||||||
Deluge.Client.web.get_hosts({
|
Deluge.Client.web.get_hosts({
|
||||||
onSuccess: Deluge.Connections.onGetHosts
|
onSuccess: Deluge.Connections.onGetHosts
|
||||||
});
|
});
|
||||||
|
@ -24,9 +24,6 @@ Deluge.Ui = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Deluge.SideBar = this.MainPanel.items.get('sidebar');
|
Deluge.SideBar = this.MainPanel.items.get('sidebar');
|
||||||
Deluge.SideBar.on('collapse', function(bar) {
|
|
||||||
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function() {
|
update: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user