forked from extern/egroupware
Fix url widget detached node implementation to use row's statustext if provided, original statustext otherwise
This commit is contained in:
parent
f8049efd03
commit
258a739f54
@ -398,7 +398,7 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
|||||||
*/
|
*/
|
||||||
getDetachedAttributes: function(_attrs)
|
getDetachedAttributes: function(_attrs)
|
||||||
{
|
{
|
||||||
_attrs.push("value", "class");
|
_attrs.push("value", "class", "statustext");
|
||||||
},
|
},
|
||||||
|
|
||||||
getDetachedNodes: function()
|
getDetachedNodes: function()
|
||||||
@ -418,10 +418,9 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
|||||||
{
|
{
|
||||||
_nodes[0].setAttribute("class", _values["class"]);
|
_nodes[0].setAttribute("class", _values["class"]);
|
||||||
}
|
}
|
||||||
if(this.options.statustext)
|
|
||||||
{
|
// Set to original status text if not set for this row
|
||||||
this.span.attr('title',this.options.statustext);
|
this.span.attr('title',_values.statustext ? _values.statustext : this.options.statustext);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});}).call(this);
|
});}).call(this);
|
||||||
et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);
|
et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user