mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Log a warning if etemplate can't find a target parent DOM node (by ID) to help track down future missing widgets.
This commit is contained in:
parent
64bfb00bd0
commit
0c5ed3aefd
@ -223,7 +223,15 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode,
|
||||
set_parent_node: function(_node) {
|
||||
if(typeof _node == "string")
|
||||
{
|
||||
this.setParentDOMNode($j('#'+_node).get(0));
|
||||
var parent = $j('#'+_node);
|
||||
if(parent.length == 0 )
|
||||
{
|
||||
this.egw().debug('warn','Unable to find DOM parent node with ID "%s" for widget %o.',_node,this);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setParentDOMNode(parent.get(0));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user