aboutsummaryrefslogtreecommitdiff
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
parent87e513dd77ab228953449d534a989c8c68f39858 (diff)
Add checkbox for options.general.enable
-rw-r--r--ext/bg/js/settings.js2
-rw-r--r--ext/bg/settings.html4
2 files changed, 6 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);
diff --git a/ext/bg/settings.html b/ext/bg/settings.html
index 8c368474..577e1a1f 100644
--- a/ext/bg/settings.html
+++ b/ext/bg/settings.html
@@ -71,6 +71,10 @@
<h3>General Options</h3>
<div class="checkbox">
+ <label><input type="checkbox" id="enable"> Enable content scanning</label>
+ </div>
+
+ <div class="checkbox">
<label><input type="checkbox" id="show-usage-guide"> Show usage guide on startup</label>
</div>