Skip to content
Snippets Groups Projects
Commit 4320e049 authored by Jared Hancock's avatar Jared Hancock
Browse files

pjax: Fixup ticket queue refresh

parent b4ef3df8
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment