forked from extern/egroupware
Avoid error if div has no ID (eg: dialog)
This commit is contained in:
parent
cb22a93104
commit
4fa0370ce4
@ -85,7 +85,7 @@ function etemplate2(_container, _menuaction)
|
|||||||
this.menuaction = _menuaction;
|
this.menuaction = _menuaction;
|
||||||
|
|
||||||
// Unique ID to prevent DOM collisions across multiple templates
|
// Unique ID to prevent DOM collisions across multiple templates
|
||||||
this.uniqueId = _container.getAttribute("id").replace('.','-');
|
this.uniqueId = _container.getAttribute("id") ? _container.getAttribute("id").replace('.','-') : '';
|
||||||
|
|
||||||
// Preset the object variable
|
// Preset the object variable
|
||||||
this.widgetContainer = null;
|
this.widgetContainer = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user