summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-02 10:22:30 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-02 10:22:30 +0000
commit537f44864785f0cbdb1c8defdc84b9e2093e3f57 (patch)
tree40945cd2f6957ad9f701a628df974d3cb50b6fb4 /roundcubemail/program
parente547ee8d87db2be82a723d5e1e74eb83d1f8cd61 (diff)
Fix mailto: compose links (#1485533)
git-svn-id: https://svn.roundcube.net/trunk@2028 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 84e5aecde..d8a7eed4b 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -823,16 +823,18 @@ function rcube_webmail()
var url = this.env.comm_path+'&_action=compose';
if (this.task=='mail')
- {
- url += '&_mbox='+urlencode(this.env.mailbox);
+ {
+ url += '&_mbox='+urlencode(this.env.mailbox);
- if (this.env.mailbox==this.env.drafts_mailbox)
- {
- var uid;
+ if (this.env.mailbox==this.env.drafts_mailbox)
+ {
+ var uid;
if (uid = this.get_single_uid())
url += '&_draft_uid='+uid;
- }
- }
+ }
+ else if (props)
+ url += '&_to='+urlencode(props);
+ }
// modify url if we're in addressbook
else if (this.task=='addressbook')
{
@@ -861,8 +863,6 @@ function rcube_webmail()
break;
}
- else if (props)
- url += '&_to='+urlencode(props);
// don't know if this is necessary...
url = url.replace(/&_framed=1/, "");