Use an etemplate / top template level prefix to avoid DOM ID collisions

This commit is contained in:
Nathan Gray 2013-07-18 09:13:15 +00:00
parent e5151adb93
commit 524f2b0f03

View File

@ -82,7 +82,10 @@ function etemplate2(_container, _menuaction)
// Copy the given parameters // Copy the given parameters
this.DOMContainer = _container; this.DOMContainer = _container;
this.menuaction = _menuaction; this.menuaction = _menuaction;
// Unique ID to prevent DOM collisions across multiple templates
this.uniqueId = egw().uid() + "-" + _container.getAttribute("id");
// Preset the object variable // Preset the object variable
this.widgetContainer = null; this.widgetContainer = null;