diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-10 10:00:00 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-10 10:00:00 +0000 |
| commit | 79962619617e1f99bbfde420bf81141cfe9c1c6b (patch) | |
| tree | f3e41df97317ed59dcea09756257924d176e9377 | |
| parent | 63806f9fc722c4b897bb56cf653220fe6e77bec7 (diff) | |
- Fix setting sorting order to "None"
git-svn-id: https://svn.roundcube.net/trunk@3604 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index b9ae6326f..5a4d34965 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1699,8 +1699,10 @@ function rcube_webmail() { var update, add_url = ''; - if (!sort_col) sort_col = this.env.sort_col; - if (!sort_order) sort_order = this.env.sort_order; + if (sort_col === null) + sort_col = this.env.sort_col; + if (!sort_order) + sort_order = this.env.sort_order; if (this.env.sort_col != sort_col || this.env.sort_order != sort_order) { update = 1; @@ -1709,7 +1711,7 @@ function rcube_webmail() if (this.env.threading != threads) { update = 1; - add_url += '&_threads=' + threads; + add_url += '&_threads=' + threads; } if (cols && cols.length) { @@ -1726,7 +1728,7 @@ function rcube_webmail() for (i=0; i<cols.length; i++) if (cols[i]) newcols[newcols.length] = cols[i]; - + if (newcols.join() != this.env.coltypes.join()) { update = 1; add_url += '&_cols=' + newcols.join(','); @@ -1926,7 +1928,7 @@ function rcube_webmail() return false; }; - // thread expanding/collapsing handler + // thread expanding/collapsing handler this.expand_message_row = function(e, uid) { var row = this.message_list.rows[uid]; @@ -1941,7 +1943,7 @@ function rcube_webmail() // message list expanding this.expand_threads = function() - { + { if (!this.env.threading || !this.env.autoexpand_threads || !this.message_list) return; |
