diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-09 14:32:47 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-09 14:32:47 -0500 |
commit | e49bf8fdce7438d7685c0106c654ecf2afbbde49 (patch) | |
tree | 22da8e4ab9e748b55bf3c47cfe6a0c3e312d2208 /src/usr/local | |
parent | b46dc238c6a3fe595c92882493879c0ae0df253b (diff) | |
download | pfsense-e49bf8fdce7438d7685c0106c654ecf2afbbde49.zip pfsense-e49bf8fdce7438d7685c0106c654ecf2afbbde49.tar.gz |
Fixed #5391
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/services_snmp.php | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/usr/local/www/services_snmp.php b/src/usr/local/www/services_snmp.php index 07a35a6..2bd8703 100644 --- a/src/usr/local/www/services_snmp.php +++ b/src/usr/local/www/services_snmp.php @@ -356,6 +356,13 @@ $group->add(new Form_MultiCheckbox( $pconfig['regex'] )); +$group->add(new Form_MultiCheckbox( + 'junk', + null, + null, + $pconfig['regex'] +))->displayAsRadio(); + $section->add($group); $form->add($section); @@ -378,10 +385,32 @@ print($form); // hostres requires mibii so we force that here events.push(function(){ + + noMibii = false; + + $('#junk').hide(); + hostresChange(); + + function hostresChange() { + if($('#hostres').prop('checked')) { + $('#mibii').prop('checked', true); + noMibii = true; + } else { + noMibii = false; + } + } + $('#hostres').change(function(){ - if($('#hostres').is(':checked')) - $('#mibii').attr('checked', 'checked'); + hostresChange(); + }); + + + $('#mibii').change(function(){ + if(noMibii) { + $('#mibii').prop('checked', 'true'); + } }); + }); //]]> </script> |