mirror of
https://github.com/ShaYmez/xlxd.git
synced 2026-06-05 15:14:37 -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:
@@ -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'] = "";
|
||||
|
||||
Reference in New Issue
Block a user