checkbox for grouping term results

This commit is contained in:
Alex Yatskov 2017-01-04 21:33:23 -08:00
parent 8615d5f497
commit 86e39efe28
3 changed files with 8 additions and 1 deletions

View File

@ -30,8 +30,9 @@ function getFormValues() {
optsNew.activateOnStartup = $('#activate-on-startup').prop('checked');
optsNew.enableAudioPlayback = $('#enable-audio-playback').prop('checked');
optsNew.showAdvancedOptions = $('#show-advanced-options').prop('checked');
optsNew.enableSoftKatakanaSearch = $('#enable-soft-katakana-search').prop('checked');
optsNew.groupTermResults = $('#group-term-results').prop('checked');
optsNew.showAdvancedOptions = $('#show-advanced-options').prop('checked');
optsNew.holdShiftToScan = $('#hold-shift-to-scan').prop('checked');
optsNew.selectMatchedText = $('#select-matched-text').prop('checked');
@ -94,6 +95,7 @@ $(document).ready(() => {
$('#activate-on-startup').prop('checked', opts.activateOnStartup);
$('#enable-audio-playback').prop('checked', opts.enableAudioPlayback);
$('#enable-soft-katakana-search').prop('checked', opts.enableSoftKatakanaSearch);
$('#group-term-results').prop('checked', opts.groupTermResults);
$('#show-advanced-options').prop('checked', opts.showAdvancedOptions);
$('#hold-shift-to-scan').prop('checked', opts.holdShiftToScan);

View File

@ -22,6 +22,7 @@ function sanitizeOptions(options) {
activateOnStartup: true,
enableAudioPlayback: true,
enableSoftKatakanaSearch: true,
groupTermResults: true,
showAdvancedOptions: false,
selectMatchedText: true,
holdShiftToScan: true,

View File

@ -37,6 +37,10 @@
<label><input type="checkbox" id="enable-soft-katakana-search"> Enable soft Katakana search</label>
</div>
<div class="checkbox">
<label><input type="checkbox" id="group-term-results"> Group term results</label>
</div>
<div class="checkbox">
<label><input type="checkbox" id="show-advanced-options"> Show advanced options</label>
</div>