mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 20:39:13 +02:00
Use an etemplate / top template level prefix to avoid DOM ID collisions
This commit is contained in:
@@ -148,9 +148,10 @@ var et2_inputWidget = et2_valueWidget.extend([et2_IInput,et2_ISubmitListener],
|
||||
var node = this.getInputNode();
|
||||
if (node)
|
||||
{
|
||||
// Unique ID to prevent DOM collisions across multiple templates
|
||||
if (_value != "")
|
||||
{
|
||||
node.setAttribute("id", _value);
|
||||
node.setAttribute("id", this.getInstanceManager().uniqueId+'_'+this.id);
|
||||
node.setAttribute("name", _value);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user