summaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r--ext/bg/js/options-form.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index 496fc91c..31756486 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -38,16 +38,16 @@ function formToOptions() {
function updateAnkiFormDataVis(opts) {
if (opts.enableAnkiConnect) {
updateAnkiFormData();
- $('.options-anki').show();
+ $('.options-anki').fadeIn();
} else {
- $('.options-anki').hide();
+ $('.options-anki').fadeOut();
}
}
function updateAnkiFormData() {
const yomichan = chrome.extension.getBackgroundPage().yomichan;
- const ankiDeck = $('#ankiDeck');
+ const ankiDeck = $('.ankiDeck');
ankiDeck.find('option').remove();
yomichan.api_getDeckNames({callback: (names) => {
if (names !== null) {
@@ -55,7 +55,7 @@ function updateAnkiFormData() {
}
}});
- const ankiModel = $('#ankiModel');
+ const ankiModel = $('.ankiModel');
ankiModel.find('option').remove();
yomichan.api_getModelNames({callback: (names) => {
if (names !== null) {