mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Avoid failure of nextmatch check with widgets without parents
This commit is contained in:
parent
cd1f03c761
commit
fd2bf095aa
@ -1116,9 +1116,9 @@ jQuery.extend(et2_selectbox, //(function(){ "use strict"; return
|
||||
if(typeof cache === 'undefined' || typeof cache.length === 'undefined')
|
||||
{
|
||||
var parent = widget._parent;
|
||||
while(parent !== null && !in_nextmatch)
|
||||
while(parent && !in_nextmatch)
|
||||
{
|
||||
in_nextmatch = (parent._type === 'nextmatch')
|
||||
in_nextmatch =(parent && parent._type && parent._type === 'nextmatch')
|
||||
parent = parent._parent;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user