Work on app-entry widgets (contact-value)

This commit is contained in:
Nathan Gray
2014-09-30 21:37:45 +00:00
parent 81f68e09d6
commit aa6c36ba3f
5 changed files with 238 additions and 13 deletions

View File

@@ -666,7 +666,8 @@ var et2_widget = ClassWithAttributes.extend(
}
if(entry && entry.type)
{
_nodeName = attributes["type"] = entry.type;
_nodeName = entry.type;
_node.setAttribute("type", entry.type);
}
entry = null;
}
@@ -675,7 +676,8 @@ var et2_widget = ClassWithAttributes.extend(
// we need to expand it now as it defines the constructor and by that attributes parsed via parseXMLAttrs!
if (_nodeName.charAt(0) == '@' || _nodeName.indexOf('$') >= 0)
{
_nodeName = attributes["type"] = this.getArrayMgr('content').expandName(_nodeName);
_nodeName = this.getArrayMgr('content').expandName(_nodeName);
_node.setAttribute("type", _nodeName);
}
// Get the constructor - if the widget is readonly, use the special "_ro"