Visual editor - adding missing event unbinding
[redakcja.git] / redakcja / static / js / wiki / loader.js
index 9530fc3..f2d7fb7 100644 (file)
@@ -5,7 +5,7 @@ if (!window.console) {
     }
 }
 
-var DEFAULT_PERSPECTIVE = "#SummaryPerspective";
+var DEFAULT_PERSPECTIVE = "#VisualPerspective";
 
 $(function()
 {
@@ -113,7 +113,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);
                         }});