summaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
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')
});
}