mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Fixed problem with class not being set correctly
This commit is contained in:
parent
645d8896cd
commit
28aeb06238
@ -152,20 +152,26 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], {
|
||||
|
||||
setDetachedAttributes: function(_nodes, _values)
|
||||
{
|
||||
// Update the properties
|
||||
var updateLink = false;
|
||||
if (typeof _values["href"] != "undefined")
|
||||
{
|
||||
updateLink = true;
|
||||
this.options.href = _values["href"];
|
||||
}
|
||||
|
||||
if (typeof _values["value"] != "undefined")
|
||||
if (typeof _values["value"] != "undefined" || updateLink)
|
||||
{
|
||||
et2_insertLinkText(this._parseText(_values["value"]), _nodes[0],
|
||||
this.options.extra_link_target);
|
||||
et2_insertLinkText(this._parseText(
|
||||
_values["value"] ? _values["value"] : this.options.value),
|
||||
_nodes[0],
|
||||
this.options.extra_link_target
|
||||
);
|
||||
}
|
||||
|
||||
if (typeof _values["class"] != "undefined")
|
||||
{
|
||||
this.set_class(_values["class"]);
|
||||
_nodes[0].setAttribute("class", _values["class"]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user