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:
parent
4fcb6d56bc
commit
371355c0f6
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ You may obtain a copy of the License at
|
||||||
var toggle = document.getElementById(iw.id + '-iw-toggle');
|
var toggle = document.getElementById(iw.id + '-iw-toggle');
|
||||||
if (toggle)
|
if (toggle)
|
||||||
{
|
{
|
||||||
if (is_assoc)
|
if (!iw.disabled)
|
||||||
{
|
{
|
||||||
toggle.className = 'cbi-button cbi-button-reset';
|
toggle.className = 'cbi-button cbi-button-reset';
|
||||||
toggle.value = '<%:Disable%>';
|
toggle.value = '<%:Disable%>';
|
||||||
|
|
Loading…
Reference in a new issue