From c3eab29e1930d80bdd0ef6d19e58e8f1dca8c170 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 30 May 2010 10:12:36 +0000 Subject: - some fixes in message list columns handling --- program/js/app.js | 71 +++++++++++++++++++++++++------------------------------ 1 file changed, 32 insertions(+), 39 deletions(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index 3921fab9b..b3097b7cf 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1727,16 +1727,13 @@ function rcube_webmail() name = oldcols[i] == 'to' ? 'from' : oldcols[i]; idx = $.inArray(name, cols); if (idx != -1) { - newcols[newcols.length] = name; + newcols.push(name); delete cols[idx]; } - else if (name == 'threads') { - delete oldcols[i]; - } } for (i=0; i= 0) { - this.set_env('subject_col', found); + if ((n = $.inArray('subject', this.env.coltypes)) >= 0) { + this.set_env('subject_col', n); if (this.message_list) - this.message_list.subject_col = found; + this.message_list.subject_col = n; } - if ((found = $.inArray('flag', this.env.coltypes)) >= 0) - this.set_env('flagged_col', found); + if ((n = $.inArray('flag', this.env.coltypes)) >= 0) + this.set_env('flagged_col', n); this.message_list.init_header(); }; -- cgit v1.2.3