Skip to content
Snippets Groups Projects
Commit b316f9c5 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1898 from greezybacon/issue/1896


lock: Disable navigation warning if not using the lock feature

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 08916f1d 526af42e
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ var autoLock = { ...@@ -64,7 +64,7 @@ var autoLock = {
autoLock.renewLock(e); autoLock.renewLock(e);
} }
if(!autoLock.lasteventTime) { //I hate nav away warnings..but if(autoLock.lockId && !autoLock.lasteventTime) { //I hate nav away warnings..but
$(document).on('pjax:beforeSend.changed', function(e) { $(document).on('pjax:beforeSend.changed', function(e) {
return confirm(__("Any changes or info you've entered will be discarded!")); return confirm(__("Any changes or info you've entered will be discarded!"));
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment