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) { diff --git a/ext/bg/options.html b/ext/bg/options.html index 9b8be64b..9dd9959b 100644 --- a/ext/bg/options.html +++ b/ext/bg/options.html @@ -19,7 +19,8 @@

General

-
+ +
@@ -56,35 +57,53 @@
- + +

Anki

-
-
- -
- - -
-
+
+ -
- -
- -
-
+
+
+
+ +
+ +
+
-
- -
- +
+ +
+ +
+
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
-
+ +