From 4213857a753af10c34d6629b32674d9c84669641 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 11 Apr 2014 12:30:53 -0500 Subject: [PATCH] pjax: Don't show spinner after backwards navigation --- scp/js/scp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scp/js/scp.js b/scp/js/scp.js index f59084e47..60eef9e66 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -635,6 +635,10 @@ getConfig = (function() { })(); $(document).on('pjax:start', function() { + // Don't show the spinner on back button + if (event instanceof PopStateEvent) + return; + clearInterval(window.ticket_refresh); $('#loading').show().css({opacity:0.7}); // Clear all timeouts -- GitLab