modules/admin-full: decouple enable/disable button state from assoc state
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2014 17:28:23 +0000 (17:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2014 17:28:23 +0000 (17:28 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/admin-full/luasrc/view/admin_network/wifi_overview.htm

index d10ea26841f6f0ab3ac5cd9d45d19925c4e55973..91d2ff4d929b9af9bf7f9d066211cb613c631072 100644 (file)
@@ -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%>';