mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-04 22:11:06 +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