From 5339381c30316c49e971fa5ba4ef2050ed96f96f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 2 Dec 2019 22:17:45 -0500 Subject: Update how anki data is updated --- ext/bg/js/settings/anki.js | 145 ++++++++++++++++++++++++++------------------- ext/bg/js/settings/main.js | 10 +--- ext/bg/settings.html | 12 ++-- 3 files changed, 93 insertions(+), 74 deletions(-) (limited to 'ext') diff --git a/ext/bg/js/settings/anki.js b/ext/bg/js/settings/anki.js index 68230139..3cea4da7 100644 --- a/ext/bg/js/settings/anki.js +++ b/ext/bg/js/settings/anki.js @@ -44,26 +44,44 @@ function _ankiSetError(error) { } } -async function _ankiDeckAndModelPopulate(options) { - const ankiFormat = $('#anki-format').hide(); - - const deckNames = await utilAnkiGetDeckNames(); - const ankiDeck = $('.anki-deck'); - ankiDeck.find('option').remove(); - deckNames.sort().forEach((name) => ankiDeck.append($('