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

lock: Cancel lock release warning when navigating

parent 3e99ceab
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ var autoLock = { ...@@ -214,7 +214,7 @@ var autoLock = {
async: false, async: false,
cache: false, cache: false,
success: function() { success: function() {
autoLock.lockId = 0; autoLock.destroy();
} }
}); });
}, },
...@@ -281,6 +281,11 @@ var autoLock = { ...@@ -281,6 +281,11 @@ var autoLock = {
function () { autoLock.monitorEvents(); }, function () { autoLock.monitorEvents(); },
time || 30000 time || 30000
); );
},
destroy: function() {
autoLock.clearTimeout();
autoLock.lockId = 0;
} }
}; };
$.autoLock = autoLock; $.autoLock = autoLock;
......
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