From 371355c0f6f5cd6dfe925b291031bc52363d70ec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 3 Oct 2014 17:28:23 +0000 Subject: [PATCH] modules/admin-full: decouple enable/disable button state from assoc state Signed-off-by: Jo-Philipp Wich --- modules/admin-full/luasrc/view/admin_network/wifi_overview.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index d10ea26841..91d2ff4d92 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -218,7 +218,7 @@ You may obtain a copy of the License at var toggle = document.getElementById(iw.id + '-iw-toggle'); if (toggle) { - if (is_assoc) + if (!iw.disabled) { toggle.className = 'cbi-button cbi-button-reset'; toggle.value = '<%:Disable%>'; -- 2.30.2