diff --git a/README.md b/README.md index 5d0b838c..02bd2aed 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Store](https://chrome.google.com/webstore/detail/yomichan/ogmnaimimemjmbakcfefmn ## Screenshots ## -[![Vocabulary definitions](https://foosoft.net/projects/yomichan-chrome/img/vocab-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/vocab.png) +[![Term definitions](https://foosoft.net/projects/yomichan-chrome/img/term-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/term.png) [![Kanji information](https://foosoft.net/projects/yomichan-chrome/img/kanji-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/kanji.png) [![Options page](https://foosoft.net/projects/yomichan-chrome/img/options-thumb.png)](https://foosoft.net/projects/yomichan-chrome/img/options.png) diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index a3250ab3..99d01db4 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -31,7 +31,7 @@ function fieldsToDict(selection) { } function modelIdToFieldOptKey(id) { - return {'anki-vocab-model': 'ankiVocabFields', 'anki-kanji-model': 'ankiKanjiFields'}[id]; + return {'anki-term-model': 'ankiTermFields', 'anki-kanji-model': 'ankiKanjiFields'}[id]; } function formToOptions(section, callback) { @@ -50,9 +50,9 @@ function formToOptions(section, callback) { case 'anki': optsNew.ankiCardTags = $('#anki-card-tags').val().split(/[,; ]+/); optsNew.sentenceExtent = parseInt($('#sentence-extent').val(), 10); - optsNew.ankiVocabDeck = $('#anki-vocab-deck').val(); - optsNew.ankiVocabModel = $('#anki-vocab-model').val(); - optsNew.ankiVocabFields = fieldsToDict($('#vocab .anki-field-value')); + optsNew.ankiTermDeck = $('#anki-term-deck').val(); + optsNew.ankiTermModel = $('#anki-term-model').val(); + optsNew.ankiTermFields = fieldsToDict($('#term .anki-field-value')); optsNew.ankiKanjiDeck = $('#anki-kanji-deck').val(); optsNew.ankiKanjiModel = $('#anki-kanji-model').val(); optsNew.ankiKanjiFields = fieldsToDict($('#kanji .anki-field-value')); @@ -73,7 +73,7 @@ function populateAnkiDeckAndModel(opts) { names.forEach((name) => ankiDeck.append($('', {value: name, text: name}))); } - $('#anki-vocab-deck').val(opts.ankiVocabDeck); + $('#anki-term-deck').val(opts.ankiTermDeck); $('#anki-kanji-deck').val(opts.ankiKanjiDeck); }}); @@ -84,7 +84,7 @@ function populateAnkiDeckAndModel(opts) { names.forEach((name) => ankiModel.append($('', {value: name, text: name}))); } - populateAnkiFields($('#anki-vocab-model').val(opts.ankiVocabModel), opts); + populateAnkiFields($('#anki-term-model').val(opts.ankiTermModel), opts); populateAnkiFields($('#anki-kanji-model').val(opts.ankiKanjiModel), opts); }}); } diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 3f31aff8..1c54dfe7 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -27,9 +27,9 @@ function sanitizeOptions(options) { enableAnkiConnect: false, ankiCardTags: ['yomichan'], sentenceExtent: 200, - ankiVocabDeck: '', - ankiVocabModel: '', - ankiVocabFields: {}, + ankiTermDeck: '', + ankiTermModel: '', + ankiTermFields: {}, ankiKanjiDeck: '', ankiKanjiModel: '', ankiKanjiFields: {} diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index eec28982..1f9e3c30 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -112,15 +112,15 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial },"4":function(container,depth0,helpers,partials,data,blockParams,depths) { var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression, alias5=container.lambda; - return " \n \n \n"; + + "/img/add_term_kana.png\">\n"; },"6":function(container,depth0,helpers,partials,data) { var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer = "