Lines 1-11
Link Here
|
1 |
/* keep tidy */ |
1 |
/* keep tidy */ |
2 |
$(document).ready(function () { |
2 |
$(document).ready(function () { |
3 |
$("#table_concerns").on("click", ".detail-trigger", function () { |
3 |
document.addEventListener("click", function (event) { |
4 |
// Find the main trigger anchor within the same table row |
4 |
const detailTrigger = event.target.closest(".detail-trigger"); |
5 |
var $mainTrigger = $(this).closest("tr").find(".main-trigger"); |
5 |
if (detailTrigger) { |
|
|
6 |
event.preventDefault(); |
6 |
|
7 |
|
7 |
// Trigger the click event of the main trigger anchor |
8 |
// Find the main trigger button in the same row |
8 |
$mainTrigger.trigger("click"); |
9 |
const mainTrigger = detailTrigger |
|
|
10 |
.closest("tr") |
11 |
.querySelector(".main-trigger"); |
12 |
|
13 |
// Trigger a click on the main trigger if it exists |
14 |
if (mainTrigger) { |
15 |
mainTrigger.click(); |
16 |
} |
17 |
} |
9 |
}); |
18 |
}); |
10 |
|
19 |
|
11 |
$("#ticketDetailsModal").on("show.bs.modal", function (event) { |
20 |
$("#ticketDetailsModal").on("show.bs.modal", function (event) { |
12 |
- |
|
|