aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-17 21:03:52 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-17 21:03:52 -0700
commita55b74c92ecb21fb688d4199811c43dd3eeb3451 (patch)
treedb57d38aeeab83d8ba804d0bd8d2272db964a517 /ext/mixed/js/display.js
parent7e3a4ecf7dbd3abc803659f3b2ebd0f9e7acc835 (diff)
adding back link on kanji defs
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 07a9f0c1..57c9b882 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -100,6 +100,7 @@ class Display {
const sequence = ++this.sequence;
const params = {
definitions,
+ source: context && context.source,
addable: options.anki.enable
};
@@ -118,7 +119,7 @@ class Display {
this.container.html(content);
$('.action-add-note').click(this.onActionAddNote.bind(this));
- $('.term-source').click(e => {
+ $('.source-term').click(e => {
e.preventDefault();
if (context && context.source) {