summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-11 10:57:24 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-11 10:57:24 +0200
commite0efd8f5dc9bcdb7559c71386aa3c91c1230e8d3 (patch)
treefae2e6c0a49aee23348e1e305d2582114cab5f6e /skins/larry/ui.js
parentc4a2264ae7a4f333116a558c104dbc0f98aab774 (diff)
Added separate From and To columns apart from smart From/To column (#1486891)
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r--skins/larry/ui.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 698785161..b6056b6ee 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -620,18 +620,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,