From b126682c923800ed15c2169c26a90ddf8720ba14 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 18 Aug 2016 20:24:27 -0700 Subject: WIP --- ext/bg/js/options-form.js | 14 +++++++------- ext/bg/js/options.js | 26 +++++++++++++------------- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'ext') diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index cd0c1ab8..62c5e7b2 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -37,7 +37,7 @@ function modelIdToFieldOptKey(id) { }[id]; } -function modelIdToTags(id) { +function modelIdToMarkers(id) { return { 'anki-term-model': ['audio', 'expression', 'glossary', 'glossary-list', 'reading', 'sentence', 'tags', 'url'], 'anki-kanji-model': ['character', 'glossary', 'glossary-list', 'kunyomi', 'onyomi', 'url'], @@ -124,7 +124,7 @@ function populateAnkiFields(element, opts) { const modelId = element.attr('id'); const optKey = modelIdToFieldOptKey(modelId); - const tags = modelIdToTags(modelId); + const markers = modelIdToMarkers(modelId); yomichan().api_getModelFieldNames({modelName, callback: (names) => { const table = element.closest('.tab-pane').find('.anki-fields'); @@ -135,19 +135,19 @@ function populateAnkiFields(element, opts) { const button = $('