diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index b0d5fd38e2e7fca08a2b5830bda7664771761a32..4b52fbe4e6afe10174737d902c0a92afcce6a50b 100644 --- a/include/staff/tickets.inc.php +++ b/include/staff/tickets.inc.php @@ -149,8 +149,6 @@ case 'open': } // Apply primary ticket status -if (!isset($status) && isset($_GET['status'])) - $status = $_GET['status']; if ($status) $tickets->filter(array('status__state'=>$status)); diff --git a/scp/js/scp.js b/scp/js/scp.js index fd1017184f8de2ba684aaecc66e4a43ed169e8d8..437ce5f6f3f2d59317ed1b3621a42bfa6879a095 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -861,7 +861,6 @@ getConfig = (function() { })(); $(document).on('pjax:click', function(options) { - clearInterval(window.ticket_refresh); // Release ticket lock (maybe) if ($.autoLock !== undefined) $.autoLock.releaseLock(); @@ -885,6 +884,8 @@ $(document).on('pjax:start', function() { $.toggleOverlay(false); // Close tooltips $('.tip_box').remove(); + // Cancel refreshes + clearInterval(window.ticket_refresh); }); $(document).on('pjax:send', function(event) {