- Enter value in milliseconds, or 0 to disable. No fractional values, and value must be 1000 or greater.
+
diff --git a/inc/ticket_list.inc.php b/inc/ticket_list.inc.php
index e065bdea..6078582b 100644
--- a/inc/ticket_list.inc.php
+++ b/inc/ticket_list.inc.php
@@ -31,7 +31,7 @@
* a license please visit the page below:
* https://www.hesk.com/buy.php
*******************************************************************************/
-
+define('MINIMUM_REFRESH_THRESHOLD_IN_SECONDS', 1);
/* Check if this is a valid include */
if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
@@ -116,9 +116,15 @@ if ($total > 0)
$next_page = ($page + 1 > $pages) ? 0 : $page + 1;
$autorefreshInSeconds = $_SESSION['autorefresh']/1000;
$autorefresh = '';
- if ($autorefreshInSeconds > 999) {
+ if ($autorefreshInSeconds >= MINIMUM_REFRESH_THRESHOLD_IN_SECONDS) {
$autorefresh = ' | '.$hesklang['autorefresh'].' '.$autorefreshInSeconds.' '.$hesklang['abbr']['second'];
- }
+ ?>
+
+ ';
if ($pages > 1)
@@ -491,8 +497,15 @@ else
echo '
';
$autorefreshInSeconds = $_SESSION['autorefresh']/1000;
- if ($autorefreshInSeconds > 999) {
+ if ($autorefreshInSeconds >= MINIMUM_REFRESH_THRESHOLD_IN_SECONDS) {
echo $hesklang['autorefresh'].' '.$autorefreshInSeconds.' '.$hesklang['abbr']['second'];
+ ?>
+
+ MINIMUM_REFRESH_THRESHOLD_IN_MILLISECONDS) { ?>
+ (function(){
+ setTimeout("location.reload(true);",);
+ })();
+
\ No newline at end of file
diff --git a/language/en/text.php b/language/en/text.php
index e1431e45..fbf33f96 100644
--- a/language/en/text.php
+++ b/language/en/text.php
@@ -23,6 +23,7 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------';
// ADDED OR MODIFIED IN NuMods 1.3.1
$hesklang['autorefresh'] = 'Autorefresh:';
+$hesklang['autorefresh_restrictions'] = 'Enter value in milliseconds. Value must be greater than 1000 to use this feature. No fractional values.';
// ADDED OR MODIFIED IN NuMods 1.3.0
$hesklang['show_filters'] = 'Show Column Filters';