From c3342819416e1dce7670a6f71a42ce42bae1dbab Mon Sep 17 00:00:00 2001 From: Daniel Intrieri <119604034+Twindrillss@users.noreply.github.com> Date: Thu, 22 Feb 2024 18:12:47 +0100 Subject: [PATCH] Update listafile.php aggiunta feature disattiva --- listafile.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/listafile.php b/listafile.php index cb23c83..5e51022 100644 --- a/listafile.php +++ b/listafile.php @@ -49,6 +49,7 @@ display:none; @@ -202,6 +207,58 @@ $results = $wpdb->get_results($query);
+ + + + + + + + +

Attiva/Disattiva

+
+
+ + + + + + + + + + +
+ +
+
+ +

+ +
+
@@ -310,6 +367,20 @@ function statocheckbox () { } + + // Questa funzione manda il form di controllo attivazione + function submitForm() { + document.getElementById('invia2').click(); + } + + // Add event listener to the checkbox + document.getElementById('stato').addEventListener('change', function() { + + // If checkbox is checked, submit the form + submitForm(); + + }); +