fixed drag lines
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user