summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-01-27 00:13:55 -0800
committerNOYB <Al_Stu@Frontier.com>2016-01-27 00:13:55 -0800
commitaf7cc41bc59519785f78d6487591263ef22c741a (patch)
treed2b912d6532c4259ecc518e29725bf1ce8b66073
parent312085250d5a4de98b988c236d328025f0f4e519 (diff)
downloadpfsense-af7cc41bc59519785f78d6487591263ef22c741a.zip
pfsense-af7cc41bc59519785f78d6487591263ef22c741a.tar.gz
Status - System Logs - Move Raw Mode Row Count JQuery
Move row count JQuery to run only in raw mode.
-rwxr-xr-xsrc/usr/local/www/status_logs.php17
-rw-r--r--src/usr/local/www/status_logs_filter.php17
-rwxr-xr-xsrc/usr/local/www/status_logs_filter_dynamic.php17
-rw-r--r--src/usr/local/www/status_logs_vpn.php17
4 files changed, 36 insertions, 32 deletions
diff --git a/src/usr/local/www/status_logs.php b/src/usr/local/www/status_logs.php
index 8894b44..fe9cd29 100755
--- a/src/usr/local/www/status_logs.php
+++ b/src/usr/local/www/status_logs.php
@@ -233,6 +233,15 @@ if (!$rawfilter) {
?>
</tbody>
</table>
+
+<script type="text/javascript">
+//<![CDATA[
+events.push(function() {
+ $("#count").html(<?=$rows?>);
+});
+//]]>
+</script>
+
<?php
if ($rows == 0) {
print_info_box(gettext('No logs to display'));
@@ -251,12 +260,4 @@ if (!$system_logs_manage_log_form_hidden) {
}
?>
-<script type="text/javascript">
-//<![CDATA[
-events.push(function() {
- $("#count").html(<?=$rows?>);
-});
-//]]>
-</script>
-
<?php include("foot.inc"); ?>
diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php
index f655a18..e1883d3 100644
--- a/src/usr/local/www/status_logs_filter.php
+++ b/src/usr/local/www/status_logs_filter.php
@@ -336,6 +336,15 @@ if (!$rawfilter) {
?>
</tbody>
</table>
+
+<script type="text/javascript">
+//<![CDATA[
+events.push(function() {
+ $("#count").html(<?=$rows?>);
+});
+//]]>
+</script>
+
<?php
if ($rows == 0) {
print_info_box(gettext('No logs to display'));
@@ -441,13 +450,5 @@ events.push(function() {
//]]>
</script>
-<script type="text/javascript">
-//<![CDATA[
-events.push(function() {
- $("#count").html(<?=$rows?>);
-});
-//]]>
-</script>
-
<?php include("foot.inc");
?>
diff --git a/src/usr/local/www/status_logs_filter_dynamic.php b/src/usr/local/www/status_logs_filter_dynamic.php
index 636ebe8..2e02d8f 100755
--- a/src/usr/local/www/status_logs_filter_dynamic.php
+++ b/src/usr/local/www/status_logs_filter_dynamic.php
@@ -484,6 +484,15 @@ function toggleListDescriptions() {
?>
</tbody>
</table>
+
+<script type="text/javascript">
+//<![CDATA[
+events.push(function() {
+ $("#count").html(<?=count($filterlog);?>);
+});
+//]]>
+</script>
+
</div>
</div>
</div>
@@ -518,12 +527,4 @@ events.push(function() {
//]]>
</script>
-<script type="text/javascript">
-//<![CDATA[
-events.push(function() {
- $("#count").html(<?=count($filterlog);?>);
-});
-//]]>
-</script>
-
<?php include("foot.inc");
diff --git a/src/usr/local/www/status_logs_vpn.php b/src/usr/local/www/status_logs_vpn.php
index df430d1..30d4e7b 100644
--- a/src/usr/local/www/status_logs_vpn.php
+++ b/src/usr/local/www/status_logs_vpn.php
@@ -261,6 +261,15 @@ if (!$rawfilter) {
<pre><?php
$rows = dump_clog_no_table($logfile_path, $nentries, true, array($filtertext));
?></pre>
+
+<script type="text/javascript">
+//<![CDATA[
+events.push(function() {
+ $("#count").html(<?=$rows?>);
+});
+//]]>
+</script>
+
<?php
if ($rows == 0) {
print_info_box(gettext('No logs to display'));
@@ -516,12 +525,4 @@ function filter_form_vpn() {
}
?>
-<script type="text/javascript">
-//<![CDATA[
-events.push(function() {
- $("#count").html(<?=$rows?>);
-});
-//]]>
-</script>
-
<?php include("foot.inc"); ?>
OpenPOWER on IntegriCloud