mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
egw API update missed in r36331:
- sending EGroupware configuration (non-sensible stuff) to browser and make it available via egw.config(_name, _app="phpgwapi") - sending link-registry in the same file - used javascript file uses etag to ensure there's no need to load it on each request
This commit is contained in:
parent
fa435de6a9
commit
4c23b3766e
@ -275,6 +275,39 @@ else
|
||||
{
|
||||
this.link_registry[_app] = _registry;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Clientside config
|
||||
*
|
||||
* @access: private, use egw.config(_name, _app="phpgwapi")
|
||||
*/
|
||||
configs: null,
|
||||
|
||||
/**
|
||||
* Query clientside config
|
||||
*
|
||||
* @param string _name name of config variable
|
||||
* @param string _app default "phpgwapi"
|
||||
* @return mixed
|
||||
*/
|
||||
config: function (_name, _app)
|
||||
{
|
||||
if (typeof _app == 'undefined') _app = 'phpgwapi';
|
||||
|
||||
if (typeof this.configs[_app] == 'undefined') return null;
|
||||
|
||||
return this.configs[_app][_name];
|
||||
},
|
||||
|
||||
/**
|
||||
* Set clientside configuration for all apps
|
||||
*
|
||||
* @param array/object
|
||||
*/
|
||||
set_configs: function(_configs)
|
||||
{
|
||||
this.configs = _configs;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user