We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa1aaf commit a4c7ca2Copy full SHA for a4c7ca2
1 file changed
modules/interventi/add.php
@@ -520,10 +520,15 @@
520
521
// Refresh modulo dopo la chiusura di una pianificazione attività derivante dalle attività
522
// da pianificare, altrimenti il promemoria non si vede più nella lista a destra
523
- // TODO: da gestire via ajax
524
- if($("input[name=id_contratto_riga]").val()) {
525
- $("#modals > div button.close").on("click", function() {
526
- location.reload();
+ const id_contratto_riga = $("input[name=id_contratto_riga]").val();
+ if(id_contratto_riga) {
+ $("#modals").on("hidden.bs.modal", function(e) {
+ // Ricarica le DataTables per aggiornare la lista dei promemoria
527
+ $(".main-records, .datatables").each(function() {
528
+ if($.fn.DataTable.isDataTable($(this))) {
529
+ $(this).DataTable().ajax.reload();
530
+ }
531
+ });
532
});
533
}
534
0 commit comments