From 4320e049ca792a49554cdeda58cdd271b2f43d62 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 8 Apr 2014 23:24:56 -0500 Subject: [PATCH] pjax: Fixup ticket queue refresh --- scp/tickets.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scp/tickets.php b/scp/tickets.php index 1655e7027..2df7cc7a2 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'); -- GitLab