summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_snmp.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-17 08:56:27 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-17 08:56:27 +0545
commit20db3e1adb437d8e094077e33e402ff805122a82 (patch)
treef6804fef026b9cae9c7391d897f220a84cf203e4 /src/usr/local/www/services_snmp.php
parent8152403354e59b40c518414523383c11fdc1a155 (diff)
downloadpfsense-20db3e1adb437d8e094077e33e402ff805122a82.zip
pfsense-20db3e1adb437d8e094077e33e402ff805122a82.tar.gz
Code style services
Diffstat (limited to 'src/usr/local/www/services_snmp.php')
-rw-r--r--src/usr/local/www/services_snmp.php21
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');
}
});
OpenPOWER on IntegriCloud