X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/df341bdd09208d2b0f84060454cc0000df19deba..28866d0f2520b7515f3c06e9b61bcce4f44d53b1:/src/redakcja/static/js/wiki/loader.js?ds=sidebyside diff --git a/src/redakcja/static/js/wiki/loader.js b/src/redakcja/static/js/wiki/loader.js index 1573c763..7f7d1b11 100644 --- a/src/redakcja/static/js/wiki/loader.js +++ b/src/redakcja/static/js/wiki/loader.js @@ -115,7 +115,18 @@ $(function() e.returnValue = "Na stronie mogą być nie zapisane zmiany."; return "Na stronie mogą być nie zapisane zmiany."; }; - }; + + + + }; + + $('body').mousemove(function(e) { + CurrentDocument.active = true; + }); + $('body').keydown(function(e) { + CurrentDocument.active = true; + }); + console.log("Fetching document's text"); @@ -145,7 +156,7 @@ $(function() $('#header').addClass('out-of-date'); clearInterval(revTimer); }}); - }, 300000); + }, 60 * 1000); }, failure: function() { $('#loading-overlay').fadeOut();