aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-10 20:49:17 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-10 21:45:43 -0400
commit71b700cd22f5a57a07cd2f9a6afa823793f5f95e (patch)
treecbd230f69e4e35dd460d7dfec02ed2b640d9d00a /ext/bg/js/settings.js
parent87e513dd77ab228953449d534a989c8c68f39858 (diff)
Add checkbox for options.general.enable
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index 06dba538..f2f08b6e 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -23,6 +23,7 @@ function getOptionsContext() {
}
async function formRead(options) {
+ options.general.enable = $('#enable').prop('checked');
options.general.showGuide = $('#show-usage-guide').prop('checked');
options.general.compactTags = $('#compact-tags').prop('checked');
options.general.compactGlossaries = $('#compact-glossaries').prop('checked');
@@ -87,6 +88,7 @@ async function formRead(options) {
}
async function formWrite(options) {
+ $('#enable').prop('checked', options.general.enable);
$('#show-usage-guide').prop('checked', options.general.showGuide);
$('#compact-tags').prop('checked', options.general.compactTags);
$('#compact-glossaries').prop('checked', options.general.compactGlossaries);