summaryrefslogtreecommitdiffstats
path: root/dist/js/settings.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-17 19:21:00 +0200
committerrstular <rok@stular.eu>2020-05-17 19:21:00 +0200
commitde95a6b78788da7472850dad13ed9b7de9e5b9b1 (patch)
tree6b5240629e86898091ae23728eda76e93efcebde /dist/js/settings.js
parentinstall (diff)
downloadbeziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar
beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.gz
beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.bz2
beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.lz
beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.xz
beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.zst
beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.zip
Diffstat (limited to '')
-rw-r--r--dist/js/settings.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/js/settings.js b/dist/js/settings.js
index 9a76ea5..f31bfaf 100644
--- a/dist/js/settings.js
+++ b/dist/js/settings.js
@@ -8,7 +8,7 @@ async function setLanguage(langCode) {
}
async function setTheme(targetTheme) {
- localforage.setItem("targetTheme", targetTheme).then((value) => {
+ localforage.setItem("theme", targetTheme).then((value) => {
console.log("Theme set: " + value);
UIAlert(D("themeSet"), "setTheme(): themeSet");
});
@@ -40,7 +40,10 @@ document.addEventListener("DOMContentLoaded", async () => {
const menus = document.querySelectorAll(".side-menu");
M.Sidenav.init(menus, { edge: "right", draggable: true });
+ var elems = document.querySelectorAll(".theme-select");
+ M.FormSelect.init(elems, {});
+
// Setup language select dropdown
- var elems = document.querySelectorAll('select');
+ var elems = document.querySelectorAll(".lang-select");
M.FormSelect.init(elems, {});
});