diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-08-27 10:21:19 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-08-27 10:21:19 +0000 |
| commit | a2c6cfcd308bae7578fbbd8d5b77dcda5477eb7c (patch) | |
| tree | 5769c6dc2262e516796aaf713cbdecd5f27b23a3 /roundcubemail | |
| parent | 33fc0e153f3a64e1675dfc1f4fc370e338db9a21 (diff) | |
- Fix "Select all" causes message to be opened in folder with exactly one message (#1486913)
git-svn-id: https://svn.roundcube.net/trunk@3908 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/program/js/app.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index c4f5fc48d..8bb15ad12 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -8,6 +8,7 @@ CHANGELOG RoundCube Webmail - Remove redundant date in syslog messages (#1486945) - Fix contacts list page controls when a group is selected (#1486946) - Fix SMTP test in Installer (#1486952) +- Fix "Select all" causes message to be opened in folder with exactly one message (#1486913) RELEASE 0.4 ----------- diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 4df147b53..b129e9881 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -715,10 +715,12 @@ function rcube_webmail() case 'select-all': this.select_all_mode = props ? false : true; + this.dummy_select = true; // prevent msg opening if there's only one msg on the list if (props == 'invert') this.message_list.invert_selection(); else this.message_list.select_all(props == 'page' ? '' : props); + this.dummy_select = null; break; case 'select-none': @@ -1370,7 +1372,7 @@ function rcube_webmail() this.select_all_mode = false; // start timer for message preview (wait for double click) - if (selected && this.env.contentframe && !list.multi_selecting) + if (selected && this.env.contentframe && !list.multi_selecting && !this.dummy_select) this.preview_timer = window.setTimeout(function(){ ref.msglist_get_preview(); }, 200); else if (this.env.contentframe) this.show_contentframe(false); |
