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

pjax: Release ticket when navigating away

parent dbaf9c9e
Branches
Tags
No related merge requests found
...@@ -634,6 +634,9 @@ getConfig = (function() { ...@@ -634,6 +634,9 @@ getConfig = (function() {
$(document).on('pjax:click', function(options) { $(document).on('pjax:click', function(options) {
if (window.ticket_refresh !== undefined) if (window.ticket_refresh !== undefined)
clearInterval(window.ticket_refresh); clearInterval(window.ticket_refresh);
// Release ticket lock (maybe)
if ($.autoLock !== undefined)
$.autoLock.releaseLock();
// Stop all animations // Stop all animations
$(document).stop(false, true); $(document).stop(false, true);
// Cancel save-changes warning banner // Cancel save-changes warning banner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment