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:
Ralf Becker 2011-08-28 08:28:53 +00:00
parent fa435de6a9
commit 4c23b3766e

View File

@ -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;
}
};
}