summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-14 20:27:43 +0200
committerrstular <rok@stular.eu>2020-05-14 20:27:43 +0200
commit1be5000aceea0301b7ee38a165018ffe1ea92758 (patch)
tree3255f3d0c13f4336ce9b94fb704e28d430dc56f0 /js
parentAnother styling fix (diff)
downloadbeziapp-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
Diffstat (limited to 'js')
-rw-r--r--js/settings.js5
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);
});