modules/admin-full: decouple enable/disable button state from assoc state

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2014-10-03 17:28:23 +00:00
parent 4fcb6d56bc
commit 371355c0f6

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