Can't switch DOM node in the detached interface, have to keep the original

This commit is contained in:
Nathan Gray 2013-11-27 16:42:37 +00:00
parent 1e36383224
commit f88a93c17e

View File

@ -238,18 +238,12 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
var link = et2_url.prototype.get_link(this._type, _value);
if(!link && this.getDOMNode().nodeName == "A")
if(!link)
{
this.span = $j(document.createElement("span"));
this.span.text(_value);
this.setDOMNode(this.span[0]);
this.span.removeAttr("href");
return;
}
else if (this.getDOMNode().nodeName != "A" && link)
{
this.span = $j(document.createElement("a"));
this.setDOMNode(this.span[0]);
}
this.span.text(_value);
switch(this._type) {
case "url":