diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-12-05 19:31:44 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-12-05 19:31:44 +0000 |
commit | 07bd3f83b401d8e9e9de3938e0a26c6e452660af (patch) | |
tree | 7f6913b347dc994dc57fa524f85a5436ff151f54 /usr/local/www/services_snmp.php | |
parent | 2ed803e736d9256aafae7a29ae0bb84aaf746c5f (diff) | |
download | pfsense-07bd3f83b401d8e9e9de3938e0a26c6e452660af.zip pfsense-07bd3f83b401d8e9e9de3938e0a26c6e452660af.tar.gz |
Synchornize with m0n0wall 1.2b3. These files have not really been
modified too much so a straight copy works. 9 files remain to be
patched by hand.
Diffstat (limited to 'usr/local/www/services_snmp.php')
-rwxr-xr-x | usr/local/www/services_snmp.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr/local/www/services_snmp.php b/usr/local/www/services_snmp.php index e7c4464..125187b 100755 --- a/usr/local/www/services_snmp.php +++ b/usr/local/www/services_snmp.php @@ -81,15 +81,11 @@ if ($_POST) { <script language="JavaScript"> <!-- function enable_change(enable_change) { - if (document.iform.enable.checked || enable_change) { - document.iform.syslocation.disabled = 0; - document.iform.syscontact.disabled = 0; - document.iform.rocommunity.disabled = 0; - } else { - document.iform.syslocation.disabled = 1; - document.iform.syscontact.disabled = 1; - document.iform.rocommunity.disabled = 1; - } + var endis; + endis = !(document.iform.enable.checked || enable_change); + document.iform.syslocation.disabled = endis; + document.iform.syscontact.disabled = endis; + document.iform.rocommunity.disabled = endis; } //--> </script> |