summaryrefslogtreecommitdiffstats
path: root/assets/js/meals.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-20 11:14:52 +0200
committerrstular <rok@stular.eu>2020-05-20 11:53:56 +0200
commit01f9eef0a5b397c12f3eee9c801167f851d77251 (patch)
treed708cf68f2640eff7ce69b314dd91a2770d2ee93 /assets/js/meals.js
parentBug fix - modal opens when hash is proivded (diff)
downloadbeziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.gz
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.bz2
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.lz
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.xz
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.zst
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.zip
Diffstat (limited to '')
-rw-r--r--assets/js/meals.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/js/meals.js b/assets/js/meals.js
index e9b3af8..78de032 100644
--- a/assets/js/meals.js
+++ b/assets/js/meals.js
@@ -4,10 +4,10 @@ async function checkLogin() {
localforage.getItem("logged_in_lopolis").then((value) => {
if (value != true) {
$("#meals-container").hide();
- $("#meals-login").show();
+ $("#meals-login-container").show();
} else {
$("#meals-container").show();
- $("#meals-login").hide();
+ $("#meals-login-container").hide();
loadMeals();
}
}).catch((err) => {
@@ -240,8 +240,8 @@ function lopolisLogout() {
async function lopolisLogin() {
setLoading(true);
- var usernameEl = $("#meals_username");
- var passwordEl = $("#meals_password");
+ var usernameEl = $("#meals-username");
+ var passwordEl = $("#meals-password");
$.ajax({
url: API_ENDPOINT+"gettoken",
crossDomain: true,