Add checkbox for options.general.enable
This commit is contained in:
parent
87e513dd77
commit
71b700cd22
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user