From af7264ab2b067f100342e68a25053ae8fb6bb5fa Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 11 Aug 2012 10:57:24 +0200 Subject: Added separate From and To columns apart from smart From/To column (#1486891) --- skins/classic/functions.js | 16 ++++++---------- skins/classic/mail.css | 1 + skins/classic/templates/mail.html | 8 ++++++-- skins/larry/mail.css | 1 + skins/larry/templates/mail.html | 8 ++++++-- skins/larry/ui.js | 16 ++++------------ 6 files changed, 24 insertions(+), 26 deletions(-) (limited to 'skins') diff --git a/skins/classic/functions.js b/skins/classic/functions.js index 48f9acd75..9b83b9044 100644 --- a/skins/classic/functions.js +++ b/skins/classic/functions.js @@ -298,22 +298,18 @@ listmenu: function(show) pos.left = pos.left - menuwidth; obj.css({ left:pos.left, top:(pos.top + ref.offsetHeight + 2)}); + // set form values $('input[name="sort_col"][value="'+rcmail.env.sort_col+'"]').prop('checked', true); $('input[name="sort_ord"][value="DESC"]').prop('checked', rcmail.env.sort_order == 'DESC'); $('input[name="sort_ord"][value="ASC"]').prop('checked', rcmail.env.sort_order != 'DESC'); $('input[name="view"][value="thread"]').prop('checked', rcmail.env.threading ? true : false); $('input[name="view"][value="list"]').prop('checked', rcmail.env.threading ? false : true); - // list columns - var found, cols = $('input[name="list_col[]"]'); - for (var i=0; i
  • -
  • +
  • +
  • +
  • @@ -178,7 +180,9 @@
  • -
  • +
  • +
  • +
  • diff --git a/skins/larry/mail.css b/skins/larry/mail.css index 512fb41d8..ee208c30d 100644 --- a/skins/larry/mail.css +++ b/skins/larry/mail.css @@ -422,6 +422,7 @@ a.iconbutton.threadmode.selected { text-align: right; } +#messagelist tr td.fromto, #messagelist tr td.from, #messagelist tr td.to, #messagelist tr td.cc, diff --git a/skins/larry/templates/mail.html b/skins/larry/templates/mail.html index 32c64d929..8b205efbe 100644 --- a/skins/larry/templates/mail.html +++ b/skins/larry/templates/mail.html @@ -181,7 +181,9 @@ diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 906db1d52..37baf59be 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -618,18 +618,10 @@ function rcube_mail_ui() $('input[name="view"][value="thread"]').prop('checked', rcmail.env.threading ? true : false); $('input[name="view"][value="list"]').prop('checked', rcmail.env.threading ? false : true); - // list columns - var found, cols = $('input[name="list_col[]"]'); - for (var i=0; i < cols.length; i++) { - if (cols[i].value != 'from') { - found = $.inArray(cols[i].value, rcmail.env.coltypes) != -1; - } - else { - found = ($.inArray('from', rcmail.env.coltypes) != -1 - || $.inArray('to', rcmail.env.coltypes) != -1); - } - $(cols[i]).prop('checked', found); - } + // set checkboxes + $('input[name="list_col[]"]').each(function() { + $(this).prop('checked', $.inArray(this.value, rcmail.env.coltypes) != -1); + }); $dialog.dialog({ modal: true, -- cgit v1.2.3