mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
- Respect force_mailto preference
- If force_mailto is not set, open in a new window instead of current
This commit is contained in:
parent
ffc506561a
commit
869ebc3ca5
@ -165,14 +165,15 @@ var et2_url = et2_textbox.extend(
|
||||
}
|
||||
break;
|
||||
case "url-email":
|
||||
if(this.egw().link_registry && this.egw().link_registry.felamimail)
|
||||
{
|
||||
return function() {this.egw().open("","felamimail","add","send_to="+jQuery.base64Encode(value));};
|
||||
}
|
||||
else if(value.indexOf("mailto:") == -1)
|
||||
if(value.indexOf("mailto:") == -1)
|
||||
{
|
||||
value = "mailto:"+value;
|
||||
}
|
||||
if((this.egw().user('apps').mail || this.egw().user('apps').felamimail) &&
|
||||
this.egw().preference('force_mailto','addressbook') == '0' )
|
||||
{
|
||||
return function() {egw.open_link(value);};
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -270,6 +271,10 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
else
|
||||
{
|
||||
this.span.attr("href", link);
|
||||
if(!this.span.attr("target"))
|
||||
{
|
||||
this.span.attr("target", "_blank");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user