now the page refresh is now suspended until you leave the filte fields.
pull/26/head
LX1IQ 9 years ago committed by GitHub
parent 31ef06dd62
commit 830cbc07f6

@ -85,6 +85,7 @@ else {
if ($PageOptions['PageRefreshActive']) {
echo '
<script>
var PageRefresh;
function ReloadPage() {
document.location.href = "./index.php';
@ -96,10 +97,13 @@ else {
if (!isset($_GET['show']) || (($_GET['show'] != 'liveircddb') && ($_GET['show'] != 'reflectors') && ($_GET['show'] != 'interlinks'))) {
echo '
setTimeout(ReloadPage, '.$PageOptions['PageRefreshDelay'].');';
PageRefresh = setTimeout(ReloadPage, '.$PageOptions['PageRefreshDelay'].');';
}
echo '
function SuspendPageRefresh() {
clearTimeout(PageRefresh);
}
</script>';
}
?>

Loading…
Cancel
Save

Powered by TurnKey Linux.