summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-09-26 21:50:34 -0700
committerGitHub <noreply@github.com>2019-09-26 21:50:34 -0700
commit8195e5109b97c284fc1d6c8559de6e5f5941c911 (patch)
tree1e01878908224e0e37f1c83614e11673152730b7 /ext/mixed
parentf5afe590ad0730a695614b32032b7ea70b46c7b0 (diff)
parent62b95a656f5e55395893982822b0388a425f5a29 (diff)
Merge pull request #223 from odehjoseph/master
Add option to enable Alt+B lookup
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index ca1738a6..3a728ee8 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -323,7 +323,9 @@ class Display {
$('.action-play-audio').click(this.onAudioPlay.bind(this));
$('.kanji-link').click(this.onKanjiLookup.bind(this));
$('.source-term').click(this.onSourceTermView.bind(this));
- $('.glossary-item').click(this.onTermLookup.bind(this));
+ if (this.options.scanning.enablePopupSearch) {
+ $('.glossary-item').click(this.onTermLookup.bind(this));
+ }
await this.adderButtonUpdate(['term-kanji', 'term-kana'], sequence);
} catch (e) {