diff --git a/4chan_x.user.js b/4chan_x.user.js index ee44c4fb2..cf8637270 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1366,10 +1366,10 @@ } (back = $('[name=backlink]', dialog)).value = conf['backlink']; (time = $('[name=time]', dialog)).value = conf['time']; - $.on(back, 'keyup', options.backlink); $.on(back, 'keyup', $.cb.value); - $.on(time, 'keyup', options.time); + $.on(back, 'keyup', options.backlink); $.on(time, 'keyup', $.cb.value); + $.on(time, 'keyup', options.time); favicon = $('select', dialog); _ref3 = favicon.options; for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) { @@ -1379,8 +1379,8 @@ break; } } - $.on(favicon, 'change', options.favicon); $.on(favicon, 'change', $.cb.value); + $.on(favicon, 'change', options.favicon); _ref4 = $$('#keybinds_tab + div input', dialog); for (_k = 0, _len3 = _ref4.length; _k < _len3; _k++) { input = _ref4[_k]; diff --git a/script.coffee b/script.coffee index 0f8f2a125..20f9f8a16 100644 --- a/script.coffee +++ b/script.coffee @@ -98,6 +98,7 @@ config = 'Auto Update': [true, 'Automatically fetch new posts'] 'Interval': 30 + # XXX Chrome can't into {log} = console # XXX GreaseMonkey can't into console.log.bind log = console.log.bind? console @@ -1016,17 +1017,17 @@ options = #rice (back = $ '[name=backlink]', dialog).value = conf['backlink'] (time = $ '[name=time]', dialog).value = conf['time'] - $.on back, 'keyup', options.backlink $.on back, 'keyup', $.cb.value - $.on time, 'keyup', options.time + $.on back, 'keyup', options.backlink $.on time, 'keyup', $.cb.value + $.on time, 'keyup', options.time favicon = $ 'select', dialog for option in favicon.options if option.textContent is conf['favicon'] option.selected = true break - $.on favicon, 'change', options.favicon $.on favicon, 'change', $.cb.value + $.on favicon, 'change', options.favicon #keybinds for input in $$ '#keybinds_tab + div input', dialog