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

pjax: Only release the ticket lock once

parent 4a945c5b
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ var autoLock = {
},
releaseLock: function(e) {
if(!autoLock.tid) { return false; }
if (!autoLock.tid || !autoLock.lockId) { return false; }
$.ajax({
type: 'POST',
......@@ -205,8 +205,8 @@ var autoLock = {
data: 'delete',
async: false,
cache: false,
success: function(){
success: function() {
autoLock.lockId = 0;
}
})
.done(function() { })
......
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