mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-07-13 21:06:17 +02:00
ViewerJS
addressbook
admin
api
images
inc
js
Resumable
dhtmlxMenu
dhtmlxtree
egw_action
etemplate
framework
jquery
jsapi
app_base.js
egw.js
egw_calendar.js
egw_config.js
egw_core.js
egw_css.js
egw_data.js
egw_debug.js
egw_files.js
egw_images.js
egw_inheritance.js
egw_jquery.js
egw_json.js
egw_jsonq.js
egw_lang.js
egw_links.js
egw_message.js
egw_notification.js
egw_open.js
egw_preferences.js
egw_ready.js
egw_store.js
egw_tail.js
egw_tooltip.js
egw_user.js
egw_utils.js
jsapi.js
labjs
egw_json.js
es6-promise.min.js
login.js
lang
ntlm
setup
src
templates
tests
anon_images.php
asyncservices.php
asyncwrapper.php
categories.php
changepwd.php
config.php
emclient-signatures.php
images.php
lang.php
thumbnail.php
user.php
calendar
collabeditor
doc
emailadmin
filemanager
files
home
importexport
infolog
mail
notifications
pixelegg
preferences
resources
setup
timesheet
.gitignore
.htaccess
.mrconfig
.travis.yml
Gruntfile.js
README.md
about.php
composer.json
composer.lock
groupdav.htaccess
groupdav.php
header.inc.php.template
index.php
json.php
login.php
logout.php
package.json
redirect.php
remote.php
share.php
status.php
updateGruntfile.php
webdav.php
59 lines
1.3 KiB
JavaScript
59 lines
1.3 KiB
JavaScript
/**
|
|
* EGroupware clientside API object
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @package etemplate
|
|
* @subpackage api
|
|
* @link http://www.egroupware.org
|
|
* @author Andreas Stöckel (as AT stylite.de)
|
|
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
|
* @version $Id$
|
|
*/
|
|
|
|
/*egw:uses
|
|
egw_core;
|
|
*/
|
|
|
|
egw.extend('config', egw.MODULE_GLOBAL, function()
|
|
{
|
|
"use strict";
|
|
|
|
/**
|
|
* Clientside config
|
|
*
|
|
* @access: private, use egw.config(_name, _app="phpgwapi")
|
|
*/
|
|
var configs = {};
|
|
|
|
return {
|
|
/**
|
|
* 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 configs[_app] == 'undefined') return null;
|
|
|
|
return configs[_app][_name];
|
|
},
|
|
|
|
/**
|
|
* Set clientside configuration for all apps
|
|
*
|
|
* @param {object} _configs
|
|
* @param {boolean} _need_clone _configs need to be cloned, as it is from different window context
|
|
* and therefore will be inaccessible in IE, after that window is closed
|
|
*/
|
|
set_configs: function(_configs, _need_clone)
|
|
{
|
|
configs = _need_clone ? jQuery.extend(true, {}, _configs) : _configs;
|
|
}
|
|
};
|
|
});
|
|
|