From 01a8b97900a917df1164e71daf21d4ac87f81164 Mon Sep 17 00:00:00 2001 From: laf Date: Fri, 6 Mar 2015 15:49:35 +0000 Subject: [PATCH 1/2] Moved to jquery for refresh --- html/index.php | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/html/index.php b/html/index.php index db8b9807e..fd4e3d169 100755 --- a/html/index.php +++ b/html/index.php @@ -142,9 +142,6 @@ if (isset($config['page_title'])) { $config['page_title_prefix'] = $config['page -' . "\n"); } -?> @@ -340,6 +337,24 @@ if (is_array($sql_debug) && is_array($php_debug)) { } ?> - + type="text/javascript"> + $(document).ready(function() { + setInterval("refreshPage()", '. $refresh .'); + }); + + function refreshPage() { + location.reload(); + } + + '); + +} + +?> + From fa3944cd8f92ddd6106ab77ccdf049d2c5fdfc89 Mon Sep 17 00:00:00 2001 From: laf Date: Sun, 8 Mar 2015 21:33:40 +0000 Subject: [PATCH 2/2] Final version of jquery pause / resume for page refresh --- html/includes/print-menubar.php | 7 +++++ html/index.php | 54 ++++++++++++++++++++++++++++----- 2 files changed, 54 insertions(+), 7 deletions(-) diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index b7afd9e15..80a5d8068 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -452,12 +452,19 @@ if ($_SESSION['userlevel'] >= '10')
  • API Settings
  • API Documentation
  • + '); } ?> + + +
  • Logout Logout
  • '); } diff --git a/html/index.php b/html/index.php index fd4e3d169..180919825 100755 --- a/html/index.php +++ b/html/index.php @@ -342,15 +342,55 @@ if (is_array($sql_debug) && is_array($php_debug)) { if ($no_refresh !== TRUE && $config['page_refresh'] != 0) { $refresh = $config['page_refresh'] * 1000; - echo(''); }