From 8968230a9a9b6b754da14ba030f102926db5c46c Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Wed, 10 Aug 2022 17:58:27 +0200 Subject: [PATCH] Fix aggiornamento totali righe selezionate --- assets/src/js/functions/datatables.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/src/js/functions/datatables.js b/assets/src/js/functions/datatables.js index 8661dc624..b2be072f5 100755 --- a/assets/src/js/functions/datatables.js +++ b/assets/src/js/functions/datatables.js @@ -306,6 +306,14 @@ function initComplete(settings) { } function start_search(module_id, field, search_value) { + // Rimozione righe selezionate per problemi di calcolo totale righe selezionate + var table_selector = "#" + $this.attr('id'); + var wrapper = getTable(table_selector); + var table = wrapper.datatable; + var row_ids = wrapper.getSelectedRows(); + wrapper.removeSelectedRows(row_ids); + table.clear().draw(); + setTableSearch(module_id, field, search_value); column.search(search_value).draw(); }