diff options
Diffstat (limited to 'js/timetable.js')
-rw-r--r-- | js/timetable.js | 6 |
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); } |