diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-08-10 08:44:52 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-08-10 08:44:52 -0700 |
commit | 5cc989b87f671702912e28c0bce3747b6b79b87b (patch) | |
tree | 5f02fec89d585e5e773becdaea09f293c2b9d13a /ext/bg/js/options-form.js | |
parent | 0ef6a2f6c963f11a97b62eacca7476ee4ec2c071 (diff) |
Rename references of "vocab" to "term"
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r-- | ext/bg/js/options-form.js | 12 |
1 files changed, 6 insertions, 6 deletions
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($('<option/>', {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($('<option/>', {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); }}); } |