From 0523ec183791bc296e7b590c4ea637c3663851a9 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 24 Apr 2009 18:09:58 +0000 Subject: [PATCH] assign the cookieprovider to Deluge.UI.cookies --- deluge/ui/web/js/Deluge.UI.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/js/Deluge.UI.js b/deluge/ui/web/js/Deluge.UI.js index 29b0c5b51..7bc96f460 100644 --- a/deluge/ui/web/js/Deluge.UI.js +++ b/deluge/ui/web/js/Deluge.UI.js @@ -23,9 +23,13 @@ Copyright: */ Deluge.UI = { + + cookies: new Ext.state.CookieProvider(), + + errorCount: 0, + initialize: function() { - this.errorCount = 0; - Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); + Ext.state.Manager.setProvider(this.cookies); this.MainPanel = new Ext.Panel({ id: 'mainPanel', iconCls: 'x-deluge-main-panel', @@ -44,7 +48,7 @@ Deluge.UI = { layout: 'fit', items: [this.MainPanel] }); - + Deluge.Login.show(); Deluge.Events.on("connect", this.onConnect, this);