diff --git a/scp/tickets.php b/scp/tickets.php index 1655e7027a98ca7af715d3213b4b68c318134692..2df7cc7a29912bc0de64dcde8db444bb120ef9d3 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -616,7 +616,10 @@ if($ticket) { //set refresh rate if the user has it configured if(!$_POST && !$_REQUEST['a'] && ($min=$thisstaff->getRefreshRate())) - $ost->addExtraHeader('<meta http-equiv="refresh" content="'.($min*60).'" />'); + $ost->addExtraHeader('', + "clearInterval(window.ticket_refresh); + window.ticket_refresh = setTimeout(function() { $.pjax({url: document.location.href, container:'#content'});}," + .($min*60000).");"); } require_once(STAFFINC_DIR.'header.inc.php');