diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-04-30 15:17:06 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-04-30 15:17:06 +0200 |
commit | 0826b2a896b3898c1f7f442ba01734ed04387f87 (patch) | |
tree | 4d89a594e8f76a68129ee1e9d3cc97f7659c6347 /program/js | |
parent | 609483d9f68f792ebf13441b3056118f4518fa7c (diff) |
Small code simplification
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/program/js/app.js b/program/js/app.js index 474a1b8c3..87f20679a 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -936,16 +936,13 @@ function rcube_webmail() url._to = props; } else { - // use contact_id passed as command parameter - var n, len, a_cids = []; + var a_cids = []; + // use contact id passed as command parameter if (props) a_cids.push(props); // get selected contacts - else if (this.contact_list) { - var selection = this.contact_list.get_selection(); - for (n=0, len=selection.length; n<len; n++) - a_cids.push(selection[n]); - } + else if (this.contact_list) + a_cids = this.contact_list.get_selection(); if (a_cids.length) this.http_post('mailto', { _cid: a_cids.join(','), _source: this.env.source }, true); |