#35 Refresh value must be 1000 or greater to prevent constant refreshes

merge-requests/2/head
Mike Koch 10 years ago
parent 9f78ed41fd
commit 93a72804f9

@ -262,7 +262,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<div class="col-sm-9">
<!-- TODO Contentify the text -->
<input type="text" class="form-control" id="autorefresh" name="autorefresh" value="<?php echo $_SESSION['new']['autorefresh']; ?>">
<span class="help-block">Enter value in milliseconds, or 0 to disable. No fractional values.</span>
<span class="help-block">Enter value in milliseconds, or 0 to disable. No fractional values, and value must be 1000 or greater.</span>
</div>
</div>
<h4><?php echo $hesklang['notn']; ?></h4>

@ -116,7 +116,7 @@ if ($total > 0)
$next_page = ($page + 1 > $pages) ? 0 : $page + 1;
$autorefreshInSeconds = $_SESSION['autorefresh']/1000;
$autorefresh = '';
if ($autorefreshInSeconds > 0) {
if ($autorefreshInSeconds > 999) {
$autorefresh = ' | '.$hesklang['autorefresh'].' '.$autorefreshInSeconds.' '.$hesklang['abbr']['second'];
}
echo sprintf($hesklang['tickets_on_pages'],$total,$pages).$autorefresh.' <br />';
@ -491,7 +491,7 @@ else
echo '<div class="row"><div class="col-sm-12">';
$autorefreshInSeconds = $_SESSION['autorefresh']/1000;
if ($autorefreshInSeconds > 0) {
if ($autorefreshInSeconds > 999) {
echo $hesklang['autorefresh'].' '.$autorefreshInSeconds.' '.$hesklang['abbr']['second'];
}

Loading…
Cancel
Save