diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-07-28 11:14:23 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-07-28 11:14:23 +0200 |
commit | 85f14674316387d08fa11221de340c71835c4fa3 (patch) | |
tree | 96bb6881e370994ca1bee8a5883cf1767b693987 /program/js/app.js | |
parent | 4d52ee03a19864e537e3aa384ffbff2e33d6beef (diff) | |
parent | d4783319a086b09eb50ac6ad5da93eb1eeb771ca (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index e00479f90..b4e11b9d8 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1052,7 +1052,7 @@ function rcube_webmail() if (this.task == 'mail') { url._mbox = this.env.mailbox; if (props) - url._to = props; + url._to = props; // also send search request so we can go back to search result after message is sent if (this.env.search_request) url._search = this.env.search_request; @@ -1080,8 +1080,12 @@ function rcube_webmail() break; } } - else if (props) + else if (props && typeof props == 'string') { url._to = props; + } + else if (props && typeof props == 'object') { + $.extend(url, props); + } this.open_compose_step(url); break; |