librarian update
[redakcja.git] / redakcja / static / js / wiki / loader.js
index 7e5c864..da95172 100644 (file)
@@ -33,6 +33,7 @@ $(function()
                 * TABS
                 */
         $('.tabs li').live('click', function(event, callback) {
                 * TABS
                 */
         $('.tabs li').live('click', function(event, callback) {
+            event.preventDefault();
                        $.wiki.switchToTab(this);
         });
 
                        $.wiki.switchToTab(this);
         });
 
@@ -113,7 +114,7 @@ $(function()
 
                 /* every 5 minutes check for a newer version */
                 var revTimer = setInterval(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);
                         }});
                             $('#header').addClass('out-of-date');
                             clearInterval(revTimer);
                         }});