modules/admin-full: make wifi enabling/disabling more reliable
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 11 Nov 2014 21:33:34 +0000 (22:33 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 11 Nov 2014 21:33:43 +0000 (22:33 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/admin-full/luasrc/view/admin_network/wifi_overview.htm

index 8fb6483770ed2e4761d1e3b3db717a04074f912e..312fd08654c900f0ebd7066287ef89182ee96ac5 100644 (file)
@@ -232,7 +232,7 @@ You may obtain a copy of the License at
                                                        toggle.title = '<%:Activate this network%>';
                                                }
 
-                                               toggle.setAttribute('active', is_assoc);
+                                               toggle.setAttribute('active', !iw.disabled);
                                        }
 
                                        var info = document.getElementById(iw.id + '-iw-status');