From 64d26557a090b4f5bccb2d0d15c03e148f04f454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 6 Mar 2020 14:22:03 +0100 Subject: neki i18n js --- js/gradings.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'js/gradings.js') diff --git a/js/gradings.js b/js/gradings.js index a6024f6..2398c03 100644 --- a/js/gradings.js +++ b/js/gradings.js @@ -1,6 +1,4 @@ const API_ENDPOINT = "https://gimb.tk/test.php"; -// const API_ENDPOINT = "http://localhost:5000/test.php"; - var calendar_obj = null; async function checkLogin() { @@ -112,7 +110,7 @@ async function loadGradings(force_refresh = false) { // If data is null, the credentials were incorrect if (data === null) { - M.toast({ html: "Request failed!" }); + UIAlert( S("requestFailed"), "loadGradings(): data === null; request failed"); setLoading(false); } else { // Save gradings & populate calendar @@ -126,7 +124,7 @@ async function loadGradings(force_refresh = false) { }, error: () => { - M.toast({ html: "No internet connection!" }); + UIAlert( S("noInternetConnection"), "loadGradings(): $.ajax:error" ); setLoading(false); } -- cgit v1.2.3