Add checkbox for options.general.enable

This commit is contained in:
toasted-nutbread 2019-09-10 20:49:17 -04:00
parent 87e513dd77
commit 71b700cd22
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -70,6 +70,10 @@
<div>
<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>