From b5002a019f239d380fb865497bab692bfaa63176 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 10 May 2010 10:00:00 +0000 Subject: - Fix setting sorting order to "None" --- program/js/app.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'program/js/app.js') diff --git a/program/js/app.js b/program/js/app.js index b9ae6326f..5a4d34965 100644 --- a/program/js/app.js +++ b/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