From: Jo-Philipp Wich Date: Fri, 3 Oct 2014 17:28:23 +0000 (+0000) Subject: modules/admin-full: decouple enable/disable button state from assoc state X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=371355c0f6f5cd6dfe925b291031bc52363d70ec;hp=4fcb6d56bcbf6a04801eba10c2f661c8aca41633 modules/admin-full: decouple enable/disable button state from assoc state Signed-off-by: Jo-Philipp Wich --- 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 d10ea2684..91d2ff4d9 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%>';