fixed drag lines

This commit is contained in:
2025-12-10 14:14:43 +01:00
parent 824ae278d1
commit 9649751ad8
2 changed files with 32 additions and 3 deletions
@@ -668,9 +668,29 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
const lineId = $(this).data("line");
// Programmati
$("#tabProgrammati tbody tr").each(function() {
const rowLine = $(this).find("td[data-line-id]").data("line-id");
if (!lineId || lineId == rowLine) {
$(this).show();
} else {
$(this).hide();
}
});
// Da Programmare
$("#tabDaProgrammare tbody tr").each(function() {
const rowLine = $(this).find("td[data-line-id]").data("line-id");
if (!lineId || lineId == rowLine) {
$(this).show();
} else {
$(this).hide();
}
});
// (opzionale) anche la tabella special, se vuoi filtrarla
$("#tabSpecial tbody tr").each(function() {
const rowLine = $(this).find("td[data-line-id]").data("line-id");
if (!lineId || lineId == rowLine) {
$(this).show();
} else {
@@ -684,6 +704,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
// Aggiungi al bottone "Pulisci" anche la rimozione filtro linea
$(document).on('click', '.btn-clear-filters', function() {
table.columns().search('').draw();