mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Get description menuaction style popups working
This commit is contained in:
parent
7e77eff672
commit
a1078e6b0a
@ -160,13 +160,25 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], {
|
||||
this.options.href = _values["href"];
|
||||
}
|
||||
|
||||
if (typeof _values["value"] != "undefined" || updateLink)
|
||||
if (typeof _values["value"] != "undefined" || (updateLink && (_values["value"] || this.options.value)))
|
||||
{
|
||||
et2_insertLinkText(this._parseText(
|
||||
_values["value"] ? _values["value"] : this.options.value),
|
||||
_nodes[0],
|
||||
this.options.extra_link_target
|
||||
_values["value"] ? _values["value"] : this.options.value),
|
||||
_nodes[0],
|
||||
this.options.extra_link_target
|
||||
);
|
||||
if(this.options.extra_link_popup)
|
||||
{
|
||||
var href = this.options.href;
|
||||
var title = this.options.extra_link_title;
|
||||
var popup = this.options.extra_link_popup;
|
||||
jQuery('a',_nodes[0])
|
||||
.click(function(e) {
|
||||
egw.open_link(href, title,popup);
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof _values["class"] != "undefined")
|
||||
|
Loading…
Reference in New Issue
Block a user