Add saving options

This commit is contained in:
Nick Krichevsky 2015-02-27 15:10:27 -05:00
parent d30e817c5e
commit fb6885258f

View file

@ -18,6 +18,10 @@ function setupOptionsView(optionsDiv){
var children = Array.prototype.slice.call(optionsDiv.querySelectorAll('input.option'));
children.forEach(function(child){
child.checked = options[child.id];
child.addEventListener('change', function(event){
options[event.target.id] = event.target.checked;
saveOptions();
});
});
}