diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-06 09:21:36 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-06 09:21:36 +0000 |
| commit | e25fe3a7c3c5d50ff06d3b36238fe1e48f21b9a2 (patch) | |
| tree | 83cc588930a75bde6c9a7da8a079bb7271026169 /roundcubemail/program | |
| parent | 6c2badd658df76299b2400ed46d8b53325fb8d5f (diff) | |
- Fix select_all_mode value after selecting a message (#1486720)
git-svn-id: https://svn.roundcube.net/trunk@3597 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/app.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 23a64e66e..00e6c8e47 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -87,7 +87,7 @@ function rcube_webmail() if (sel) button_prop.sel = sel; if (over) button_prop.over = over; - this.buttons[command][this.buttons[command].length] = button_prop; + this.buttons[command][this.buttons[command].length] = button_prop; }; // register a specific gui object @@ -1399,15 +1399,12 @@ function rcube_webmail() var selected = list.get_single_selection() != null; // Hide certain command buttons when Drafts folder is selected - if (this.env.mailbox == this.env.drafts_mailbox) { - this.enable_command('reply', 'reply-all', 'forward', false); - this.enable_command('show', 'print', 'open', 'edit', 'download', 'viewsource', selected); - this.enable_command('delete', 'moveto', 'copy', 'mark', (list.selection.length > 0 ? true : false)); - } - else { - this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', 'edit', 'open', 'download', 'viewsource', selected); - this.enable_command('delete', 'moveto', 'copy', 'mark', (list.selection.length > 0 ? true : false)); - } + this.enable_command('reply', 'reply-all', 'forward', this.env.mailbox == this.env.drafts_mailbox ? false : selected); + this.enable_command('show', 'print', 'open', 'edit', 'download', 'viewsource', selected); + this.enable_command('delete', 'moveto', 'copy', 'mark', (list.selection.length > 0 ? true : false)); + + // reset all-pages-selection + this.select_all_mode = false; // start timer for message preview (wait for double click) if (selected && this.env.contentframe && !list.multi_selecting) |
