from Mayhem 245dfaa1f935ee97856f7c5f718d6af774c078e5: update index mode menu when opened

This commit is contained in:
ccd0 2014-09-20 10:02:30 -07:00
parent 6bffe73450
commit 30572f4876

View File

@ -30,9 +30,13 @@ Index =
{ el: $.el 'label', <%= html('<input type="radio" name="Index Mode" value="all pages"> All threads') %> }
{ el: $.el 'label', <%= html('<input type="radio" name="Index Mode" value="catalog"> 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