summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-11 20:28:34 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-11 20:28:34 +0200
commitec532341ce644691e4798da4711f344717d42b66 (patch)
tree3292a78e29aebe67e7ad21b2527e55eca3656111 /skins
parentf3b55ee8e8ee5f12214396249e84ac841d468455 (diff)
Fix list mode switch to 'List' after saving list settings in Larry skin (#1489164)
Diffstat (limited to 'skins')
-rw-r--r--skins/larry/ui.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 6f9d30daa..65707cc76 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -740,8 +740,6 @@ function rcube_mail_ui()
$('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);
// set checkboxes
$('input[name="list_col[]"]').each(function() {
@@ -770,11 +768,10 @@ function rcube_mail_ui()
var sort = $('input[name="sort_col"]:checked').val(),
ord = $('input[name="sort_ord"]:checked').val(),
- thread = $('input[name="view"]:checked').val(),
cols = $('input[name="list_col[]"]:checked')
.map(function(){ return this.value; }).get();
- rcmail.set_list_options(cols, sort, ord, thread == 'thread' ? 1 : 0);
+ rcmail.set_list_options(cols, sort, ord, rcmail.env.threading);
}