summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-21 20:17:12 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-21 20:17:12 -0700
commit10226663bddfb2cea8c6d18420ccee9f847034ef (patch)
tree99578b270b10d4d1eb272b604c97d48fee28f1a6 /ext/bg/js
parentf1850defa6c6bc288d978b098ee33387b1f989ce (diff)
Adding tabs
Diffstat (limited to 'ext/bg/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) {