aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-08-03 19:54:01 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2019-08-03 19:54:01 +0300
commit3b07a9000cbf715098b6e368c39ee9175cd5f04f (patch)
tree340aa25b156bcbc178d0e9326f3fd0ca5a0d8bef /ext/mixed
parent683bb5b620759c71297ca6d8fe24aa8c3ff56a18 (diff)
add source term button to terms
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 650372d3..3bb78fe1 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -278,6 +278,7 @@ class Display {
const sequence = ++this.sequence;
const params = {
definitions,
+ source: context && context.source,
addable: options.anki.enable,
grouped: options.general.resultOutputMode === 'group',
merged: options.general.resultOutputMode === 'merge',
@@ -309,6 +310,7 @@ class Display {
$('.action-view-note').click(this.onNoteView.bind(this));
$('.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));
await this.adderButtonUpdate(['term-kanji', 'term-kana'], sequence);