From a55b74c92ecb21fb688d4199811c43dd3eeb3451 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 17 Mar 2017 21:03:52 -0700 Subject: adding back link on kanji defs --- ext/mixed/js/display.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/mixed/js') 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) { -- cgit v1.2.3