mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add support for app.class.method links in description
This commit is contained in:
parent
5513df1277
commit
4713387be1
@ -114,8 +114,19 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], {
|
|||||||
_parseText: function(_value) {
|
_parseText: function(_value) {
|
||||||
if (this.options.href)
|
if (this.options.href)
|
||||||
{
|
{
|
||||||
|
var href = this.options.href;
|
||||||
|
if (href.indexOf('/')==-1 && href.split('.').length >= 3 &&
|
||||||
|
!(href.indexOf('mailto:')!=-1 || href.indexOf('://') != -1 || href.indexOf('javascript:') != -1)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
href = "/index.php?menuaction="+href;
|
||||||
|
}
|
||||||
|
if (href.charAt(0) == '/') // link relative to eGW
|
||||||
|
{
|
||||||
|
href = egw.link(href);
|
||||||
|
}
|
||||||
return [{
|
return [{
|
||||||
"href": this.options.href,
|
"href": href,
|
||||||
"text": _value
|
"text": _value
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user