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 14:11:47 +0200
commitaf7264ab2b067f100342e68a25053ae8fb6bb5fa (patch)
tree7989168543dd9af67dd811002623f1cd91b2a878 /skins/larry/ui.js
parent68b9f365b38fe68848eedf81a9eaad7810f51b0b (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 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,