summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_snmp.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-12-05 19:31:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-12-05 19:31:44 +0000
commit07bd3f83b401d8e9e9de3938e0a26c6e452660af (patch)
tree7f6913b347dc994dc57fa524f85a5436ff151f54 /usr/local/www/services_snmp.php
parent2ed803e736d9256aafae7a29ae0bb84aaf746c5f (diff)
downloadpfsense-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-xusr/local/www/services_snmp.php14
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>
OpenPOWER on IntegriCloud