mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Do not fail if selectbox cannot find the top level definition, just make a new cache for the scope
This commit is contained in:
parent
c2eaabaa5b
commit
e5cb830108
@ -1108,7 +1108,11 @@ jQuery.extend(et2_selectbox, //(function(){ "use strict"; return
|
|||||||
options_string = options_string.replace(/,+$/, '');
|
options_string = options_string.replace(/,+$/, '');
|
||||||
|
|
||||||
var cache_id = widget._type+'_'+options_string;
|
var cache_id = widget._type+'_'+options_string;
|
||||||
var cache = egw.window.et2_selectbox.type_cache[cache_id];
|
var cache = (
|
||||||
|
egw.window.et2_selectbox ?
|
||||||
|
egw.window.et2_selectbox :
|
||||||
|
egw(window).window.et2_selectbox
|
||||||
|
).type_cache[cache_id] || {};
|
||||||
|
|
||||||
// Options for a selectbox in a nextmatch must be returned now, as the
|
// Options for a selectbox in a nextmatch must be returned now, as the
|
||||||
// widget we have is not enough to set the options later.
|
// widget we have is not enough to set the options later.
|
||||||
|
Loading…
Reference in New Issue
Block a user