diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-03-06 14:22:03 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-03-06 14:22:03 +0100 |
commit | 64d26557a090b4f5bccb2d0d15c03e148f04f454 (patch) | |
tree | 2986b6252747ce561fb1692cbeee022ab73065b8 /js/login.js | |
parent | added i18n, converted HTML files, TODO: js UI responses, TODO: translations (diff) | |
download | beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.tar beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.tar.gz beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.tar.bz2 beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.tar.lz beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.tar.xz beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.tar.zst beziapp-64d26557a090b4f5bccb2d0d15c03e148f04f454.zip |
Diffstat (limited to 'js/login.js')
-rw-r--r-- | js/login.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/login.js b/js/login.js index aba0fa3..d7c9579 100644 --- a/js/login.js +++ b/js/login.js @@ -1,6 +1,4 @@ const API_ENDPOINT = "https://gimb.tk/test.php"; -// const API_ENDPOINT = "http://localhost:5000/test.php"; - document.addEventListener("DOMContentLoaded", () => { setupEventListeners(); }) @@ -46,7 +44,7 @@ function login() { // If ime is null, the password was incorrect if (data["ime"] === null) { - M.toast({ html: "Login failed!" }); + UIAlert( S("loginFailed"), "login(): fetchprofil null name; bad login info." ); $("#password").val(""); } else { @@ -63,7 +61,7 @@ function login() { }, error: function () { - M.toast({ html: "No internet connection!" }); + UIAlert( S("noInternetConnection"), "login(): $.ajax error" ); } }) |