From 8a2e6c087e62a9ed639a80ada0c435a272b0c584 Mon Sep 17 00:00:00 2001 From: Jonathan Barratt Date: Tue, 3 Jan 2017 00:42:12 +0700 Subject: [PATCH] hotfix for #470: datatables error on empty ticket list handle the no tickets match query case with js rather than python for DataTables compatibility --- helpdesk/templates/helpdesk/ticket_list.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helpdesk/templates/helpdesk/ticket_list.html b/helpdesk/templates/helpdesk/ticket_list.html index 2e71e076..9375317e 100644 --- a/helpdesk/templates/helpdesk/ticket_list.html +++ b/helpdesk/templates/helpdesk/ticket_list.html @@ -9,6 +9,9 @@ $(document).ready(function() { $('#ticketTable').DataTable({ + "oLanguage": { + "sEmptyTable": "{% trans 'No Tickets Match Your Selection' %}" + }, responsive: true }); @@ -234,8 +237,6 @@ $(document).ready(function() { {{ ticket.created|naturaltime }} {{ ticket.get_assigned_to }} - {% empty %} - {% trans "No Tickets Match Your Selection" %} {% endfor %}