From 4471cc9dce239705577880c93e4dbb22c93955ef Mon Sep 17 00:00:00 2001 From: Devdatt Bhatt Date: Mon, 8 Jun 2026 04:30:36 +0000 Subject: [PATCH] ui update --- html/network.php | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/html/network.php b/html/network.php index 8ccb26c..78b42c8 100755 --- a/html/network.php +++ b/html/network.php @@ -159,7 +159,6 @@ $selected_interface = $_GET['interface'] ?? array_keys($interface_data)[0] ?? nu
-
> +
- -
+
@@ -271,34 +268,18 @@ $selected_interface = $_GET['interface'] ?? array_keys($interface_data)[0] ?? nu }); }); - // Multicast toggle switch functionality - simplified approach + // Multicast toggle switch functionality document.addEventListener('DOMContentLoaded', function() { - document.querySelectorAll('.multicast-toggle').forEach(function(checkbox) { - - checkbox.addEventListener('click', function() { - + checkbox.addEventListener('change', function() { const interfaceName = this.id.replace('multicast-', ''); - - const label = document.getElementById( - 'multicast-label-' + interfaceName - ); - + const label = this.nextElementSibling; // Get the label element + if (label) { - label.textContent = this.checked ? - 'Enabled' : - 'Disabled'; + label.textContent = this.checked ? 'Enabled' : 'Disabled'; } - - console.log( - 'Multicast:', - interfaceName, - this.checked ? 'on' : 'off' - ); }); - }); - });