This commit is contained in:
probablycorey
2013-05-02 12:05:43 -07:00
parent f0c8c044c9
commit f4f74e1171

View File

@@ -17,11 +17,13 @@ class ConfigPanel extends View
input = $(input)
name = input.attr('id')
type = input.attr('type')
@observeConfig name, (value) ->
if type is 'checkbox'
input.attr('checked', value)
else
input.val(value) if value
input.on 'change', =>
value = input.val()
if type == 'checkbox'