summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_snmp.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-09 14:32:47 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-09 14:32:47 -0500
commite49bf8fdce7438d7685c0106c654ecf2afbbde49 (patch)
tree22da8e4ab9e748b55bf3c47cfe6a0c3e312d2208 /src/usr/local/www/services_snmp.php
parentb46dc238c6a3fe595c92882493879c0ae0df253b (diff)
downloadpfsense-e49bf8fdce7438d7685c0106c654ecf2afbbde49.zip
pfsense-e49bf8fdce7438d7685c0106c654ecf2afbbde49.tar.gz
Fixed #5391
Diffstat (limited to 'src/usr/local/www/services_snmp.php')
-rw-r--r--src/usr/local/www/services_snmp.php33
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>
OpenPOWER on IntegriCloud