diff options
author | rstular <rok@stular.eu> | 2020-05-20 11:14:52 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-20 11:53:56 +0200 |
commit | 01f9eef0a5b397c12f3eee9c801167f851d77251 (patch) | |
tree | d708cf68f2640eff7ce69b314dd91a2770d2ee93 /assets/js/meals.js | |
parent | Bug fix - modal opens when hash is proivded (diff) | |
download | beziapp-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.js | 8 |
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, |