aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-07 18:24:31 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-07 18:24:31 -0700
commit4a6055d781cd9bafb1887ef4e8ee26d3735ad405 (patch)
tree4a2e181de42c9e29df905eabba38beabe996c904 /ext/bg/js/options-form.js
parente6ea1ddb150bd97a427a9a3119de57bde88613fa (diff)
WIP
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r--ext/bg/js/options-form.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index eb9d2f53..422b9b4a 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -18,18 +18,20 @@
function optionsToForm(opts) {
+ $('#activateOnStartup').prop('checked', opts.activateOnStartup);
$('#enableAnkiConnect').prop('checked', opts.enableAnkiConnect);
- $('#selectMatchedText').prop('checked', opts.selectMatchedText);
- $('#loadOnStartup').prop('checked', opts.loadOnStartup);
+ $('#loadEnamDict').prop('checked', opts.loadEnamDict);
$('#scanLength').val(opts.scanLength);
+ $('#selectMatchedText').prop('checked', opts.selectMatchedText);
}
function formToOptions() {
return sanitizeOptions({
- loadOnStartup: $('#loadOnStartup').prop('checked'),
- selectMatchedText: $('#selectMatchedText').prop('checked'),
+ activateOnStartup: $('#activateOnStartup').prop('checked'),
enableAnkiConnect: $('#enableAnkiConnect').prop('checked'),
- scanLength: $('#scanLength').val()
+ loadEnamDict: $('#loadEnamDict').prop('checked'),
+ scanLength: $('#scanLength').val(),
+ selectMatchedText: $('#selectMatchedText').prop('checked')
});
}