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 ++++++++++++++++++--------------------- skins/default/templates/mail.html | 3 +- 2 files changed, 34 insertions(+), 40 deletions(-) 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(); }; diff --git a/skins/default/templates/mail.html b/skins/default/templates/mail.html index 9ade5641f..b28dcffeb 100644 --- a/skins/default/templates/mail.html +++ b/skins/default/templates/mail.html @@ -172,7 +172,7 @@
    -
  • +
  • @@ -180,6 +180,7 @@
  • +
-- cgit v1.2.3