Commit 5bfa825c authored by Michal Čihař's avatar Michal Čihař

Hold the translation lock for limited time

Allow lock to expire after one hour from loading the page.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 996d7730
......@@ -427,9 +427,12 @@ $(function () {
/* Lock updates */
if ($('#js-lock').length > 0) {
window.setInterval(function () {
var js_lock_update = window.setInterval(function () {
$.get($('#js-lock').attr('href'));
}, 19000);
window.setInterval(function () {
window.clearInterval(js_lock_update);
}, 3600000);
};
/* Zen mode handling */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment