summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_pftop.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-14 20:20:16 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-14 20:20:16 +0545
commit947141fd21b4496d8963d1598d6ca6a2e000702c (patch)
treec4f39f94d05059417f3e5743fc7c826ea52657fc /src/usr/local/www/diag_pftop.php
parent9ba351c17e4c85e01832e38b6ba7b6a7898a290d (diff)
downloadpfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.zip
pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.tar.gz
Code style usr local www a-e
Diffstat (limited to 'src/usr/local/www/diag_pftop.php')
-rw-r--r--src/usr/local/www/diag_pftop.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/usr/local/www/diag_pftop.php b/src/usr/local/www/diag_pftop.php
index 8537f91..dd57e9c 100644
--- a/src/usr/local/www/diag_pftop.php
+++ b/src/usr/local/www/diag_pftop.php
@@ -115,8 +115,9 @@ if ($_REQUEST['sorttype'] && in_array($_REQUEST['sorttype'], $sorttypes) &&
$numstate = "100";
}
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
$form = new Form(false);
$form->addGlobal(new Form_Input(
@@ -187,7 +188,7 @@ print $form;
);
}
- events.push(function(){
+ events.push(function() {
setInterval('getpftopactivity()', 2500);
getpftopactivity();
});
@@ -204,12 +205,13 @@ print $form;
<script type="text/javascript">
//<![CDATA[
-events.push(function(){
- $('#viewtype').on('change', function(){
- if (['queue', 'label', 'rules'].indexOf($(this).val()) > -1)
+events.push(function() {
+ $('#viewtype').on('change', function() {
+ if (['queue', 'label', 'rules'].indexOf($(this).val()) > -1) {
$("#sorttype, #sorttypediv, #statesdiv, #states").parents('.form-group').hide();
- else
+ } else {
$("#sorttype, #sorttypediv, #statesdiv, #states").parents('.form-group').show();
+ }
});
});
//]]>
OpenPOWER on IntegriCloud