summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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