mirror of https://github.com/ShaYmez/xlxd.git
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:
parent
27377a4d62
commit
b8ec26965d
|
@ -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'] = "";
|
||||
|
|
Loading…
Reference in New Issue