diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-10-11 19:45:36 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-10-11 19:45:36 -0700 |
commit | 82162a071a518bef3a0bc85d00cbf2bbe5d37038 (patch) | |
tree | dec61bb9b05c8e5a9db69378c349631dc6e42e37 /ext/bg/js/options-form.js | |
parent | a949e66a6c244447e6e3b28b4a24954e68f0be5d (diff) |
WIP
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r-- | ext/bg/js/options-form.js | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index 6508a9eb..653521d6 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -39,8 +39,25 @@ function modelIdToFieldOptKey(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'], + 'anki-term-model': [ + 'audio', + 'expression', + 'expression-furigana', + 'glossary', + 'glossary-list', + 'reading', + 'sentence', + 'tags', + 'url' + ], + 'anki-kanji-model': [ + 'character', + 'glossary', + 'glossary-list', + 'kunyomi', + 'onyomi', + 'url' + ], }[id]; } @@ -111,19 +128,21 @@ function populateAnkiDeckAndModel(opts) { } function updateAnkiStatus() { - $('.error-dlg').hide(); - - yomichan().api_getVersion({callback: version => { - if (version === null) { - $('.error-dlg-connection').show(); - $('.options-anki-controls').hide(); - } else if (version !== yomichan().getApiVersion()) { - $('.error-dlg-version').show(); - $('.options-anki-controls').hide(); - } else { - $('.options-anki-controls').show(); - } - }}); + // $('.error-dlg').hide(); + + // yomichan().api_getVersion({callback: version => { + // if (version === null) { + // $('.error-dlg-connection').show(); + // $('.options-anki-controls').hide(); + // } else if (version !== yomichan().getApiVersion()) { + // $('.error-dlg-version').show(); + // $('.options-anki-controls').hide(); + // } else { + // $('.options-anki-controls').show(); + // } + // }}); + + $('.options-anki-controls').show(); } function populateAnkiFields(element, opts) { |