diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-01-04 21:33:23 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-01-04 21:33:23 -0800 |
commit | 86e39efe281f8b09e199d7e2ddc05e77d5add140 (patch) | |
tree | eb060b55fa5f026e80b6d9ecd643514f39cb6ec5 /ext/bg | |
parent | 8615d5f497ab595b72e1e1d666c4a373eb5a5940 (diff) |
checkbox for grouping term results
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/options-form.js | 4 | ||||
-rw-r--r-- | ext/bg/js/options.js | 1 | ||||
-rw-r--r-- | ext/bg/options.html | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index ae13dbb1..20d516dd 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -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); diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 28448b96..464c2116 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -22,6 +22,7 @@ function sanitizeOptions(options) { activateOnStartup: true, enableAudioPlayback: true, enableSoftKatakanaSearch: true, + groupTermResults: true, showAdvancedOptions: false, selectMatchedText: true, holdShiftToScan: true, diff --git a/ext/bg/options.html b/ext/bg/options.html index 7ad5ea5c..bc0302a2 100644 --- a/ext/bg/options.html +++ b/ext/bg/options.html @@ -38,6 +38,10 @@ </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> </div> |