aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-07 20:48:59 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-07 20:48:59 -0800
commitf7d7b1bd84a460c4bc602576495ec4c0fe357acb (patch)
treedb6dc564ad43c4de7a3b2343fc48a25fdc0260a0 /ext/bg/js
parent786ef851c908f19c065f6ddd7faa124cc018c50f (diff)
add dictionary formatting field
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/options-form.js2
-rw-r--r--ext/bg/js/yomichan.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index a8715ed8..957f4ce5 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -324,6 +324,7 @@ function modelIdToMarkers(id) {
return {
'anki-term-model': [
'audio',
+ 'dictionary',
'expression',
'expression-furigana',
'glossary',
@@ -335,6 +336,7 @@ function modelIdToMarkers(id) {
],
'anki-kanji-model': [
'character',
+ 'dictionary',
'glossary',
'glossary-list',
'kunyomi',
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index ef80f16c..f04e120c 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -124,6 +124,7 @@ class Yomichan {
const markers = [
'audio',
'character',
+ 'dictionary',
'expression',
'expression-furigana',
'glossary',
@@ -139,9 +140,6 @@ class Yomichan {
for (const marker of markers) {
let value = definition[marker] || null;
switch (marker) {
- case 'audio':
- value = '';
- break;
case 'expression':
if (mode === 'term_kana' && definition.reading) {
value = definition.reading;