mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
💄
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user