mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 09:23:39 +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 () {
|
$(document).ready(function () {
|
||||||
// Ticket DataTable Initialization
|
// 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({
|
$('#ticketTable').DataTable({
|
||||||
language: {
|
language: {
|
||||||
"emptyTable": "{% trans 'No Tickets Match Your Selection' %}"
|
"emptyTable": "{% trans 'No Tickets Match Your Selection' %}"
|
||||||
|
Loading…
Reference in New Issue
Block a user