mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix apps using an iframe for admin could not properly load the sidebox tree
This commit is contained in:
parent
b5dc938ae9
commit
daaf795e8f
@ -258,7 +258,13 @@ var et2_DOMWidget = (function(){ "use strict"; return et2_widget.extend(et2_IDOM
|
||||
if(typeof _node == "string")
|
||||
{
|
||||
var parent = jQuery('#'+_node);
|
||||
if(parent.length == 0 )
|
||||
if(parent.length === 0 && window.parent)
|
||||
{
|
||||
// Could not find it, try again with wider context
|
||||
// (in case there's an iframe in admin, for example)
|
||||
parent = jQuery('#'+_node, window.parent.document);
|
||||
}
|
||||
if(parent.length === 0)
|
||||
{
|
||||
this.egw().debug('warn','Unable to find DOM parent node with ID "%s" for widget %o.',_node,this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user