Pop up a nice error message when an AJAX request fails.

This commit is contained in:
Georg Lehner 2024-05-11 16:41:01 +02:00
parent d7b75087dc
commit 25f338cfc5

View File

@ -341,6 +341,9 @@
$(document).ready(function () {
// Ticket DataTable Initialization
$.fn.dataTable.ext.errMode = function(settings, helpPage, message) {
alert("{% trans 'Error fetching tickets occured, please contact the system administrators of this server' %}")
};
$('#ticketTable').DataTable({
language: {
"emptyTable": "{% trans 'No Tickets Match Your Selection' %}"