- save selected folder when go to compose (to back to proper folder)

release-0.6
alecpl 16 years ago
parent cf6a833c95
commit 0bfbe62ab0

@ -821,22 +821,27 @@ function rcube_webmail()
case 'compose': case 'compose':
var url = this.env.comm_path+'&_action=compose'; var url = this.env.comm_path+'&_action=compose';
if (this.task=='mail' && this.env.mailbox==this.env.drafts_mailbox) if (this.task=='mail')
{ {
var uid; url += '&_mbox='+urlencode(this.env.mailbox);
if (uid = this.get_single_uid())
url += '&_draft_uid='+uid+'&_mbox='+urlencode(this.env.mailbox); if (this.env.mailbox==this.env.drafts_mailbox)
} {
var uid;
if (uid = this.get_single_uid())
url += '&_draft_uid='+uid;
}
}
// modify url if we're in addressbook // modify url if we're in addressbook
else if (this.task=='addressbook') else if (this.task=='addressbook')
{ {
// switch to mail compose step directly // switch to mail compose step directly
if (props && props.indexOf('@') > 0) if (props && props.indexOf('@') > 0)
{ {
url = this.get_task_url('mail', url); url = this.get_task_url('mail', url);
this.redirect(url + '&_to='+urlencode(props)); this.redirect(url + '&_to='+urlencode(props));
break; break;
} }
// use contact_id passed as command parameter // use contact_id passed as command parameter
var a_cids = new Array(); var a_cids = new Array();

Loading…
Cancel
Save