diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-01-25 03:29:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-25 03:29:55 +0200 |
commit | 7357eaf07a899a20de715026de7e4baaa37d4539 (patch) | |
tree | b8b3aa4506de0c42bc596c1a62e1d2d5c8f3641d /ext/bg/js | |
parent | be645c2c9856b3723ba1192132d2947d4f13eb9a (diff) | |
parent | fa4004437d8ca5aff34c31f61ce8aea485be24d1 (diff) |
Merge pull request #330 from siikamiika/query-parser-helper-disabling
Query parser helper disabling
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/search-query-parser.js | 5 | ||||
-rw-r--r-- | ext/bg/js/settings/main.js | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js index 8115dd46..e8e6d11f 100644 --- a/ext/bg/js/search-query-parser.js +++ b/ext/bg/js/search-query-parser.js @@ -88,6 +88,11 @@ class QueryParser extends TextScanner { ]; } + setOptions(options) { + super.setOptions(options); + this.queryParser.dataset.termSpacing = `${options.parsing.termSpacing}`; + } + refreshSelectedParser() { if (this.parseResults.length > 0) { if (this.selectedParser === null) { diff --git a/ext/bg/js/settings/main.js b/ext/bg/js/settings/main.js index 6dccc7e0..b2ac82f9 100644 --- a/ext/bg/js/settings/main.js +++ b/ext/bg/js/settings/main.js @@ -80,6 +80,7 @@ async function formRead(options) { options.parsing.enableScanningParser = $('#parsing-scan-enable').prop('checked'); options.parsing.enableMecabParser = $('#parsing-mecab-enable').prop('checked'); + options.parsing.termSpacing = $('#parsing-term-spacing').prop('checked'); options.parsing.readingMode = $('#parsing-reading-mode').val(); const optionsAnkiEnableOld = options.anki.enable; |