mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 15:33:09 +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 () {
|
||||
// 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({
|
||||
language: {
|
||||
"emptyTable": "{% trans 'No Tickets Match Your Selection' %}"
|
||||
|
Loading…
Reference in New Issue
Block a user