Oops, save then preview the changes.

This commit is contained in:
Nicolas Stepien 2011-12-12 16:12:11 +01:00
parent 0dca954a24
commit faa952511c
2 changed files with 7 additions and 6 deletions

View File

@ -1366,10 +1366,10 @@
} }
(back = $('[name=backlink]', dialog)).value = conf['backlink']; (back = $('[name=backlink]', dialog)).value = conf['backlink'];
(time = $('[name=time]', dialog)).value = conf['time']; (time = $('[name=time]', dialog)).value = conf['time'];
$.on(back, 'keyup', options.backlink);
$.on(back, 'keyup', $.cb.value); $.on(back, 'keyup', $.cb.value);
$.on(time, 'keyup', options.time); $.on(back, 'keyup', options.backlink);
$.on(time, 'keyup', $.cb.value); $.on(time, 'keyup', $.cb.value);
$.on(time, 'keyup', options.time);
favicon = $('select', dialog); favicon = $('select', dialog);
_ref3 = favicon.options; _ref3 = favicon.options;
for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) { for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) {
@ -1379,8 +1379,8 @@
break; break;
} }
} }
$.on(favicon, 'change', options.favicon);
$.on(favicon, 'change', $.cb.value); $.on(favicon, 'change', $.cb.value);
$.on(favicon, 'change', options.favicon);
_ref4 = $$('#keybinds_tab + div input', dialog); _ref4 = $$('#keybinds_tab + div input', dialog);
for (_k = 0, _len3 = _ref4.length; _k < _len3; _k++) { for (_k = 0, _len3 = _ref4.length; _k < _len3; _k++) {
input = _ref4[_k]; input = _ref4[_k];

View File

@ -98,6 +98,7 @@ config =
'Auto Update': [true, 'Automatically fetch new posts'] 'Auto Update': [true, 'Automatically fetch new posts']
'Interval': 30 'Interval': 30
# XXX Chrome can't into {log} = console # XXX Chrome can't into {log} = console
# XXX GreaseMonkey can't into console.log.bind # XXX GreaseMonkey can't into console.log.bind
log = console.log.bind? console log = console.log.bind? console
@ -1016,17 +1017,17 @@ options =
#rice #rice
(back = $ '[name=backlink]', dialog).value = conf['backlink'] (back = $ '[name=backlink]', dialog).value = conf['backlink']
(time = $ '[name=time]', dialog).value = conf['time'] (time = $ '[name=time]', dialog).value = conf['time']
$.on back, 'keyup', options.backlink
$.on back, 'keyup', $.cb.value $.on back, 'keyup', $.cb.value
$.on time, 'keyup', options.time $.on back, 'keyup', options.backlink
$.on time, 'keyup', $.cb.value $.on time, 'keyup', $.cb.value
$.on time, 'keyup', options.time
favicon = $ 'select', dialog favicon = $ 'select', dialog
for option in favicon.options for option in favicon.options
if option.textContent is conf['favicon'] if option.textContent is conf['favicon']
option.selected = true option.selected = true
break break
$.on favicon, 'change', options.favicon
$.on favicon, 'change', $.cb.value $.on favicon, 'change', $.cb.value
$.on favicon, 'change', options.favicon
#keybinds #keybinds
for input in $$ '#keybinds_tab + div input', dialog for input in $$ '#keybinds_tab + div input', dialog