From e0efd8f5dc9bcdb7559c71386aa3c91c1230e8d3 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sat, 11 Aug 2012 04:57:24 -0400
Subject: [PATCH] Added separate From and To columns apart from smart From/To column (#1486891)

---
 skins/larry/ui.js |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 6987851..b6056b6 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -620,18 +620,10 @@
     $('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,

--
Gitblit v1.9.1