modules/admin-full: make wifi enabling/disabling more reliable

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2014-11-11 22:33:34 +01:00
parent a7b44a1b4b
commit ef444d511d

View 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');