}
}
-var DEFAULT_PERSPECTIVE = "#SummaryPerspective";
+var DEFAULT_PERSPECTIVE = "#VisualPerspective";
$(function()
{
* TABS
*/
$('.tabs li').live('click', function(event, callback) {
+ event.preventDefault();
$.wiki.switchToTab(this);
});
console.log("Initial tab is:", active_tab)
$.wiki.switchToTab(active_tab);
+
+ /* every 5 minutes check for a newer version */
+ var revTimer = setInterval(function() {
+ CurrentDocument.checkRevision({outdated: function(){
+ $('#header').addClass('out-of-date');
+ clearInterval(revTimer);
+ }});
+ }, 300000);
},
failure: function() {
$('#loading-overlay').fadeOut();