From 435ef112fb0877278dd1c5b94bbdc34b7ee600cf Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 1 Oct 2008 08:02:45 +0000 Subject: [PATCH] fix the data checking --- deluge/ui/webui/templates/ajax/static/js/deluge-ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js b/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js index c2686874d..64dc778c5 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-ui.js @@ -24,6 +24,9 @@ Deluge.UI = { filterChanged: this.filterChanged.bindWithEvent(this) }; this.loadUi.delay(250, this); + window.addEvent('load', function(e) { + this.vbox.calculatePositions(); + }.bindWithEvent(this)); }, loadUi: function() { @@ -146,7 +149,7 @@ Deluge.UI = { }, updated: function(data) { - if ($defined(data)) return; + if (!$defined(data)) return; this.torrents = new Hash(data.torrents); this.stats = data.stats; this.filters = data.filters;