diff --git a/deluge/ui/web/js/deluge-connections.js b/deluge/ui/web/js/deluge-connections.js index 58174f7f6..51b15fad7 100644 --- a/deluge/ui/web/js/deluge-connections.js +++ b/deluge/ui/web/js/deluge-connections.js @@ -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 }); diff --git a/deluge/ui/web/js/deluge-ui.js b/deluge/ui/web/js/deluge-ui.js index 3233c80fa..96e8ce261 100644 --- a/deluge/ui/web/js/deluge-ui.js +++ b/deluge/ui/web/js/deluge-ui.js @@ -24,9 +24,6 @@ Deluge.Ui = { }); Deluge.SideBar = this.MainPanel.items.get('sidebar'); - Deluge.SideBar.on('collapse', function(bar) { - - }); }, update: function() {