diff --git a/apps/static/js/tickets.js b/apps/static/js/tickets.js index d2b307d..87fcc8c 100644 --- a/apps/static/js/tickets.js +++ b/apps/static/js/tickets.js @@ -299,9 +299,8 @@ function loadTicketItems(page=1) { var priorityElem = template.find(".ticket-item-priority"); priorityElem.css("color", ticket.priority.colour); priorityElem.css("background-color", ticket.priority.backgroundcolour); - // priorityElem.attr("data-bs-title", ticket.priority.title); - // priorityElem.attr("data-bs-toggle", "tooltip"); - // priorityElem.tooltip(); + priorityElem.attr("data-bs-title", ticket.priority.title + " Priority"); + priorityElem.tooltip(); var departmentElem = template.find(".ticket-item-department"); if (ticket.author.department === null) { @@ -310,17 +309,14 @@ function loadTicketItems(page=1) { else { departmentElem.css("color", ticket.author.department.colour); departmentElem.css("background-color", ticket.author.department.backgroundcolour); + departmentElem.attr("data-bs-title", ticket.author.department.title + " Department"); + departmentElem.tooltip(); } - // departmentElem.attr("data-bs-title", ticket.author.department.title); - // departmentElem.attr("data-bs-toggle", "tooltip"); - // departmentElem.tooltip(); // Add the content to the interface $("#ticketsContainer .content").append(template); }); - $("body").tooltip(); - // Make tickets clickable applyTicketClickFunction(); diff --git a/apps/templates/home/tickets.html b/apps/templates/home/tickets.html index 003550a..7bd2f49 100644 --- a/apps/templates/home/tickets.html +++ b/apps/templates/home/tickets.html @@ -408,10 +408,10 @@