diff --git a/src/Miscellaneous/Index.coffee b/src/Miscellaneous/Index.coffee index bcc4c4615..b1db097ec 100644 --- a/src/Miscellaneous/Index.coffee +++ b/src/Miscellaneous/Index.coffee @@ -2,25 +2,27 @@ Index = init: -> return if g.VIEW isnt 'index' - label = $.el 'label', - innerHTML: """ - - """ - select = label.firstChild - select.value = Conf['Index Mode'] - $.on select, 'change', $.cb.value - $.on select, 'change', @update + subEntries = [] + + subEntry = + el: $.el 'span', textContent: 'Index Mode' + subEntries: [ + { el: $.el 'label', innerHTML: ' Paged' } + { el: $.el 'label', innerHTML: ' All threads' } + ] + for label in subEntry.subEntries + input = label.el.firstChild + input.checked = Conf['Index Mode'] is input.value + $.on input, 'change', $.cb.value + $.on input, 'change', @update + subEntries.push subEntry $.event 'AddMenuEntry', type: 'header' el: $.el 'span', textContent: 'Index Navigation' order: 90 - subEntries: [el: label] + subEntries: subEntries $.on d, '4chanXInitFinished', @initReady