Track public JS yg dipakai view (tooltips, dhcp, stasiunkerja, tarifstiker, member-details/extend) biar ikut ke-deploy

This commit is contained in:
2026-10-14 12:59:35 +07:00
parent fae9184c1b
commit 7dec985309
6 changed files with 1773 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
$(document).ready(function () {
$("#example tbody").on("click", "tr", function () {
console.log($("#example tbody tr").length);
const notrans = $(this).data("notrans");
// hapus semua highlight
$("#example tbody tr").removeClass("selected");
// highlight semua row dalam 1 grup
$(`#example tbody tr[data-notrans="${notrans}"]`).addClass("selected");
// ambil data dari row pertama grup
const firstRow = $(`#example tbody tr[data-notrans="${notrans}"]`).first();
selectedRowData = {
notrans: firstRow.data("notrans"),
};
console.log("Selected detail trans :", selectedRowData);
$("#rowActions").removeClass("d-none");
});
$(".detail-button").on("click", function () {
$("#modal-details").show();
});
});