cvs: doc-editor /js main.js

From: Date: Tue, 31 Mar 2009 20:25:22 +0000
Subject: cvs: doc-editor /js main.js
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3621@lists.php.net to get a copy of this message
yannick Tue Mar 31 20:25:22 2009 UTC Modified files: /doc-editor/js main.js Log: change the way the theme is changed http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.19&r2=1.20&diff_format=u Index: doc-editor/js/main.js diff -u doc-editor/js/main.js:1.19 doc-editor/js/main.js:1.20 --- doc-editor/js/main.js:1.19 Tue Mar 31 05:37:15 2009 +++ doc-editor/js/main.js Tue Mar 31 20:25:21 2009 @@ -92,9 +92,8 @@ //For the theme, we apply this. this.userConf.conf_theme = o.mess.userConf.conf_theme; - Ext.util.CSS.swapStyleSheet("extTheme", 'js/extjs/resources/css/ext-all.css'); - Ext.util.CSS.swapStyleSheet("appTheme", this.userConf.conf_theme); - + Ext.get('appTheme').dom.href = this.userConf.conf_theme; + // Load datastore this.loadDataStore(); @@ -2675,9 +2674,9 @@ listeners: { scope: this, select: function(c, record, numIndex){ - Ext.util.CSS.swapStyleSheet("extTheme", 'js/extjs/resources/css/ext-all.css'); - Ext.util.CSS.swapStyleSheet("appTheme", c.getValue()); - this.confUpdate('conf_theme', c.getValue()); + var hrefTheme = c.getValue(); + Ext.get('appTheme').dom.href = hrefTheme; + this.confUpdate('conf_theme', hrefTheme); } }

« previous php.doc.cvs (#3621) next »