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

regression: Fix js error setting up ticket refresh on PJAX

parent 1ac8e0d2
No related branches found
No related tags found
No related merge requests found
......@@ -539,7 +539,7 @@ if($ticket) {
//set refresh rate if the user has it configured
if(!$_POST && !$_REQUEST['a'] && ($min=(int)$thisstaff->getRefreshRate())) {
$js = "$.refreshTicketView({$min}*60000);";
$js = "+function(){ var qq = setInterval(function() { if ($.refreshTicketView === undefined) return; clearInterval(qq); $.refreshTicketView({$min}*60000); }, 200); }();";
$ost->addExtraHeader('<script type="text/javascript">'.$js.'</script>',
$js);
}
......
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