X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c446cd5aed63e0ea7ee52c05bf3d0ca8951969b2..915a84299a90d4c922ca4a554ded9fbc2651ccf4:/redakcja/static/js/wiki/loader.js diff --git a/redakcja/static/js/wiki/loader.js b/redakcja/static/js/wiki/loader.js index 7e5c8645..da951722 100644 --- a/redakcja/static/js/wiki/loader.js +++ b/redakcja/static/js/wiki/loader.js @@ -33,6 +33,7 @@ $(function() * TABS */ $('.tabs li').live('click', function(event, callback) { + event.preventDefault(); $.wiki.switchToTab(this); }); @@ -113,7 +114,7 @@ $(function() /* every 5 minutes check for a newer version */ var revTimer = setInterval(function() { - CurrentDocument.checkRevision({error: function(){ + CurrentDocument.checkRevision({outdated: function(){ $('#header').addClass('out-of-date'); clearInterval(revTimer); }});