assign the cookieprovider to Deluge.UI.cookies

This commit is contained in:
Damien Churchill 2009-04-24 18:09:58 +00:00
parent c718c2bf30
commit 0523ec1837

View File

@ -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',