mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 10:21:05 +01:00
Merge pull request #1182 from jorge-leon/graceful-datatable-errors
Pop up a nice error message when an AJAX request fails. Closes #1179
This commit is contained in:
commit
c77bb30035
@ -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 providing the message below:\n ' %}" + message)
|
||||||
|
};
|
||||||
$('#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