diff options
author | alecpl <alec@alec.pl> | 2008-10-02 17:26:16 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-10-02 17:26:16 +0000 |
commit | 2c832e451988be00e07c8ba1cc4ff8b5389feced (patch) | |
tree | f834db0bf5b2bf7762abbaf4b09663be4f2ea54b /program/js/app.js | |
parent | 4683bf1640f964c16f656c1b0858e4aade4f5837 (diff) |
- small improvement in getunread.inc + fix: don't call msglist_select() for getunread and check-recent actions
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index ef9d1c51c..7a8b5e907 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2112,7 +2112,7 @@ function rcube_webmail() if (this.env.signatures[id]) { - newsig = this.env.signatures[id]['text']; + newsig = String(this.env.signatures[id]['text']).replace("\n", "\r\n"); htmlsig = this.env.signatures[id]['is_html']; } @@ -3828,13 +3828,14 @@ function rcube_webmail() case 'getunread': case 'list': if (this.task == 'mail') { - if (this.message_list) + if (this.message_list && request_obj.__action == 'list') this.msglist_select(this.message_list); this.enable_command('show', 'expunge', 'select-all', 'select-none', 'sort', (this.env.messagecount > 0)); this.enable_command('purge', this.purge_mailbox_test()); } else if (this.task == 'addressbook') this.enable_command('export', (this.contact_list && this.contact_list.rowcount > 0)); + break; } |