diff options
author | thomascube <thomas@roundcube.net> | 2011-10-10 20:15:46 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-10-10 20:15:46 +0000 |
commit | dc6c4f4a28652f428a507b0335f418749cdbc3bd (patch) | |
tree | 336545f4b595b555631569eb73b34ea5cf0a183f /program/js | |
parent | a3148236ebaa7e61177e7186138997d136b88b3e (diff) |
Contact groups can have direct email addresses => distribution lists; enable 'compose' command for the selected group
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index caae45d6b..86575b040 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -845,7 +845,9 @@ function rcube_webmail() } if (a_cids.length) - this.http_post('mailto', {_cid: a_cids.join(','), _source: this.env.source}, true); + this.http_post('mailto', { _cid: a_cids.join(','), _source: this.env.source}, true); + else if (this.env.group) + this.http_post('mailto', { _gid: this.env.group, _source: this.env.source}, true); break; } @@ -3882,7 +3884,7 @@ function rcube_webmail() } } - this.enable_command('compose', list.selection.length > 0); + this.enable_command('compose', this.env.group || list.selection.length > 0); this.enable_command('edit', id && writable); this.enable_command('delete', list.selection.length && writable); @@ -3968,7 +3970,8 @@ function rcube_webmail() { this.contact_list.clear(true); this.show_contentframe(false); - this.enable_command('delete', 'compose', false); + this.enable_command('delete', false); + this.enable_command('compose', this.env.group ? true : false); }; // load contact record |