diff options
author | rstular <rok@stular.eu> | 2020-05-14 20:27:43 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 20:27:43 +0200 |
commit | 1be5000aceea0301b7ee38a165018ffe1ea92758 (patch) | |
tree | 3255f3d0c13f4336ce9b94fb704e28d430dc56f0 | |
parent | Another styling fix (diff) | |
download | beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.tar beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.tar.gz beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.tar.bz2 beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.tar.lz beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.tar.xz beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.tar.zst beziapp-1be5000aceea0301b7ee38a165018ffe1ea92758.zip |
-rw-r--r-- | js/settings.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/settings.js b/js/settings.js index fed7fe6..2e0e6ac 100644 --- a/js/settings.js +++ b/js/settings.js @@ -1,13 +1,14 @@ // settings.js -- TODO async function setLanguage(langCode) { - localforage.setItem("chosenLang", langCode).then( () => { + localforage.setItem("chosenLang", langCode).then((value) => { + console.log("Language set: " + value); UIAlert(D("languageSet"), "setLanguage(): languageSet"); }); } document.addEventListener("DOMContentLoaded", async () => { - $(document).on("click", ".settings-language-selector", () => { + $(".settings-language-selector").click(function () { let languageToSet = $(this).attr("data-language"); setLanguage(languageToSet); }); |