1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-12-23 01:55:49 -05:00

db v2.3.5

now the page refresh is now suspended until you leave the filte fields.
This commit is contained in:
LX1IQ 2017-02-06 14:26:10 +01:00 committed by GitHub
parent 31ef06dd62
commit 830cbc07f6

View File

@ -85,7 +85,8 @@ else {
if ($PageOptions['PageRefreshActive']) {
echo '
<script>
var PageRefresh;
function ReloadPage() {
document.location.href = "./index.php';
if (isset($_GET['show'])) {
@ -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>';
}
?>