mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
Pop up a nice error message when an AJAX request fails.
This commit is contained in:
parent
d7b75087dc
commit
25f338cfc5
@ -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' %}"
|
||||
|
Loading…
Reference in New Issue
Block a user