forked from extern/egroupware
Can't switch DOM node in the detached interface, have to keep the original
This commit is contained in:
parent
1e36383224
commit
f88a93c17e
@ -238,18 +238,12 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
|
|||||||
|
|
||||||
var link = et2_url.prototype.get_link(this._type, _value);
|
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.span.text(_value);
|
||||||
this.setDOMNode(this.span[0]);
|
this.span.removeAttr("href");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (this.getDOMNode().nodeName != "A" && link)
|
|
||||||
{
|
|
||||||
this.span = $j(document.createElement("a"));
|
|
||||||
this.setDOMNode(this.span[0]);
|
|
||||||
}
|
|
||||||
this.span.text(_value);
|
this.span.text(_value);
|
||||||
switch(this._type) {
|
switch(this._type) {
|
||||||
case "url":
|
case "url":
|
||||||
|
Loading…
Reference in New Issue
Block a user