From 30572f487680c29fe3128270b936c73c3be72a64 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 20 Sep 2014 10:02:30 -0700 Subject: [PATCH] from Mayhem 245dfaa1f935ee97856f7c5f718d6af774c078e5: update index mode menu when opened --- src/General/Index.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 32ee38462..be57ed572 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -30,9 +30,13 @@ Index = { el: $.el 'label', <%= html(' All threads') %> } { el: $.el 'label', <%= html(' Catalog') %> } ] + open: -> + for label in @subEntries + input = label.el.firstChild + input.checked = Conf['Index Mode'] is input.value + true for label in modeEntry.subEntries input = label.el.firstChild - input.checked = Conf['Index Mode'] is input.value $.on input, 'change', $.cb.value $.on input, 'change', @cb.mode