diff options
Diffstat (limited to 'src/usr/local/www/services_snmp.php')
-rw-r--r-- | src/usr/local/www/services_snmp.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/usr/local/www/services_snmp.php b/src/usr/local/www/services_snmp.php index 67f5efb..f11c90f 100644 --- a/src/usr/local/www/services_snmp.php +++ b/src/usr/local/www/services_snmp.php @@ -213,11 +213,13 @@ $shortcut_section = "snmp"; include("head.inc"); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); +} -if ($savemsg) +if ($savemsg) { print_info_box($savemsg); +} $form = new Form(); @@ -277,10 +279,11 @@ $form->add($section); $section = new Form_Section('SNMP Trap settings'); -if($pconfig['trapenable']) +if ($pconfig['trapenable']) { $section->addClass('toggle-traps', 'in'); -else +} else { $section->addClass('toggle-traps', 'collapse'); +} $section->addInput(new Form_Input( 'trapserver', @@ -372,7 +375,7 @@ print($form); //<![CDATA[ // hostres requires mibii so we force that here -events.push(function(){ +events.push(function() { noMibii = false; @@ -380,7 +383,7 @@ events.push(function(){ hostresChange(); function hostresChange() { - if($('#hostres').prop('checked')) { + if ($('#hostres').prop('checked')) { $('#mibii').prop('checked', true); noMibii = true; } else { @@ -388,13 +391,13 @@ events.push(function(){ } } - $('#hostres').change(function(){ + $('#hostres').change(function() { hostresChange(); }); - $('#mibii').change(function(){ - if(noMibii) { + $('#mibii').change(function() { + if (noMibii) { $('#mibii').prop('checked', 'true'); } }); |