diff --git a/helpdesk/templates/helpdesk/ticket_list.html b/helpdesk/templates/helpdesk/ticket_list.html index b421cc70..ea8a5d1b 100644 --- a/helpdesk/templates/helpdesk/ticket_list.html +++ b/helpdesk/templates/helpdesk/ticket_list.html @@ -61,7 +61,7 @@ {% csrf_token %} - +
@@ -140,7 +140,7 @@
- +
@@ -171,7 +171,7 @@
- +
@@ -230,13 +230,13 @@

- + - + - +

@@ -277,9 +277,12 @@ responsive: true }); {% else %} + function get_url(row) + { + return "{% url 'helpdesk:view' 1234 %}".replace(/1234/, row.id.toString()); + } $(document).ready(function() { - let url = "" //DataTables Initialization let tasks_table = $('#ticketTable').DataTable({ "language": { @@ -302,10 +305,9 @@ { var id = data.split(" ")[0]; var name = data.split(" ")[1]; - let url = "{% url 'helpdesk:view' 1234 %}".replace(/1234/, id.toString()); if (type === 'display') { - data = '' + name + ''; + data = '' + name + ''; } return data } @@ -327,7 +329,7 @@ { if (type === 'display') { - data = '' + data + ''; + data = '' + data + ''; } return data }