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/css/frame.css | 4 ++-- ext/mixed/img/source-term.png | Bin 0 -> 680 bytes ext/mixed/js/display.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 ext/mixed/img/source-term.png (limited to 'ext/mixed') diff --git a/ext/mixed/css/frame.css b/ext/mixed/css/frame.css index e6a41aac..af689cbe 100644 --- a/ext/mixed/css/frame.css +++ b/ext/mixed/css/frame.css @@ -31,8 +31,8 @@ */ hr { - margin-top: 0.8em; - margin-bottom: 0.8em; + padding: 0px; + margin: 0px; } #spinner { diff --git a/ext/mixed/img/source-term.png b/ext/mixed/img/source-term.png new file mode 100644 index 00000000..2e53c698 Binary files /dev/null and b/ext/mixed/img/source-term.png differ 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