summaryrefslogtreecommitdiffstats
path: root/js/timetable.js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-06 14:33:35 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-06 14:33:35 +0100
commitc301d332c6a90d1b0037386b8ef05b2a4ca6daa5 (patch)
treefbe32aaa5c8f0bca2266c08e65cc698411984304 /js/timetable.js
parentdeleting save files (diff)
downloadbeziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.tar
beziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.tar.gz
beziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.tar.bz2
beziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.tar.lz
beziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.tar.xz
beziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.tar.zst
beziapp-c301d332c6a90d1b0037386b8ef05b2a4ca6daa5.zip
Diffstat (limited to 'js/timetable.js')
-rw-r--r--js/timetable.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/timetable.js b/js/timetable.js
index c144ecf..740731a 100644
--- a/js/timetable.js
+++ b/js/timetable.js
@@ -128,7 +128,7 @@ async function loadTimetable(date_object, force_refresh = false) {
success: (data) => {
// Check if operation was successful
if (data === null) {
- M.toast({ html: "No periods in selected week." });
+ UIAlert( D("noPeriods") );
setLoading(false);
} else {
@@ -142,13 +142,11 @@ async function loadTimetable(date_object, force_refresh = false) {
displayTimetable(data, date_monday);
setLoading(false);
});
-
-
}
},
error: () => {
- M.toast({ html: "No internet connection!" });
+ UIAlert( D( "noInternetConnection" ) );
setLoading(false);
}