mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 06:30:23 +02:00
egw.getCache(name) function to get a cache-object shared between all EGroupware windows and popups
used to share server-side generated options for et2_selectbox also removed nextmatch specific code from et2_selectbox which seems no longer necessary
This commit is contained in:
@ -145,9 +145,27 @@ egw.extend('utils', egw.MODULE_GLOBAL, function()
|
||||
|
||||
var uid_counter = 0;
|
||||
|
||||
/**
|
||||
* Global cache shared between all EGroupware windows
|
||||
* @type {{}}
|
||||
*/
|
||||
const cache = {};
|
||||
|
||||
// Create the utils object which contains references to all functions
|
||||
// covered by it.
|
||||
var utils = {
|
||||
/**
|
||||
* Get a cache object shared between all EGroupware windows
|
||||
*
|
||||
* @param {string} _name unique name for the cache-object
|
||||
* @return {*}
|
||||
*/
|
||||
getCache: function(_name)
|
||||
{
|
||||
if (typeof cache[_name] === 'undefined') cache[_name] = {};
|
||||
|
||||
return cache[_name];
|
||||
},
|
||||
|
||||
ajaxUrl: function(_menuaction) {
|
||||
if(_menuaction.indexOf('menuaction=') >= 0)
|
||||
|
Reference in New Issue
Block a user