summaryrefslogtreecommitdiffstats
path: root/assets/js/meals.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/meals.js')
-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,