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

oops: Allow PJAX navigation and delayed setLock

parent 6e05bad5
No related branches found
No related tags found
No related merge requests found
......@@ -993,9 +993,16 @@ $(function() {
<?php
// Set the lock if one exists
if ($lock) { ?>
!function() {
var setLock = setInterval(function() {
if (typeof(window.autoLock) === 'undefined')
return;
clearInterval(setLock);
autoLock.setLock({
id:<?php echo $lock->getId(); ?>,
time: <?php echo $cfg->getLockTime(); ?>}, 'acquire');
}, 50);
}();
<?php } ?>
});
</script>
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