aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-21 18:07:57 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-21 18:07:57 -0700
commitf1850defa6c6bc288d978b098ee33387b1f989ce (patch)
tree59cb3ac7f971687235ecda927545b848667a09f0 /ext/bg/js/options-form.js
parent5f97e8d16a18873f2a4f3cac47d295280764a142 (diff)
Cleanup
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 93755745..496fc91c 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -49,19 +49,19 @@ function updateAnkiFormData() {
const ankiDeck = $('#ankiDeck');
ankiDeck.find('option').remove();
- yomichan.api_getDeckNames((names) => {
+ yomichan.api_getDeckNames({callback: (names) => {
if (names !== null) {
names.forEach((name) => ankiDeck.append($('<option/>', {value: name, text: name})));
}
- });
+ }});
const ankiModel = $('#ankiModel');
ankiModel.find('option').remove();
- yomichan.api_getModelNames((names) => {
+ yomichan.api_getModelNames({callback: (names) => {
if (names !== null) {
names.forEach((name) => ankiModel.append($('<option/>', {value: name, text: name})));
}
- });
+ }});
}
function onOptionsChanged() {