mirror of
https://github.com/php/web-doc-editor.git
synced 2026-04-25 18:08:02 +02:00
27 lines
611 B
JavaScript
27 lines
611 B
JavaScript
Ext.namespace('ui','ui.task');
|
|
|
|
ui.task.LoadConfigTask = function(config)
|
|
{
|
|
Ext.apply(this, config);
|
|
|
|
XHR({
|
|
params : { task : 'getConf' },
|
|
success : function(response)
|
|
{
|
|
var o = Ext.decode(response.responseText);
|
|
|
|
phpDoc.userLogin = o.mess.userLogin;
|
|
phpDoc.userLang = o.mess.userLang;
|
|
|
|
phpDoc.userConf = o.mess.userConf;
|
|
|
|
//For the theme, we apply this.
|
|
Ext.get('appTheme').dom.href = phpDoc.userConf["theme"];
|
|
|
|
|
|
// Draw the interface
|
|
phpDoc.drawInterface();
|
|
}
|
|
});
|
|
};
|