summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-11-02 10:22:30 +0000
committerthomascube <thomas@roundcube.net>2008-11-02 10:22:30 +0000
commita9ab9fd5707c86242b09c610e235500102d4a0dd (patch)
tree21c547637cb0aae4af88a2b2cac88d4ed4c9ce53 /program/js/app.js
parentd0d94caff634604abf0d1e2194c46f4ae828810e (diff)
Fix mailto: compose links (#1485533)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 84e5aecde..d8a7eed4b 100644
--- a/program/js/app.js
+++ b/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/, "");