1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2025-07-30 12:12:25 -04:00

add missing SuspendPageRefresh() to dashboard2

SuspendPageRefresh() is called on input's onfocus (on users.php) to stop auto refresh while user is typing, however it is missing on dashboard2
This commit is contained in:
narspt 2018-02-03 01:53:37 +00:00 committed by GitHub
parent 27377a4d62
commit b8ec26965d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,7 @@ if ($CallingHome['Active']) {
if ($PageOptions['PageRefreshActive']) {
echo '
<script>
var PageRefresh;
function ReloadPage() {';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
@ -125,10 +126,13 @@ if ($CallingHome['Active']) {
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>';
}
if (!isset($_GET['show'])) $_GET['show'] = "";