aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authorodehjoseph <odeh.joseph@gmail.com>2019-09-26 21:33:33 -0700
committerodehjoseph <odeh.joseph@gmail.com>2019-09-26 21:33:33 -0700
commit62b95a656f5e55395893982822b0388a425f5a29 (patch)
tree1e01878908224e0e37f1c83614e11673152730b7 /ext/mixed/js
parentf5afe590ad0730a695614b32032b7ea70b46c7b0 (diff)
Add option to enable Alt+B lookup
Diffstat (limited to 'ext/mixed/js')
-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) {