DEFAULT_PERSPECTIVE = "#MotifsPerspective";
+
$(function()
{
var tabs = $('ol#tabs li');
* TABS
*/
$('#tabs li').live('click', function(event, callback) {
+ event.preventDefault();
$.wiki.switchToTab(this);
});
p.destroy();
return false;
});
-
+/*
$(window).resize(function(){
$('iframe').height($(window).height() - $('#tabs').outerHeight() - $('#source-editor .toolbar').outerHeight());
});
+ */
$(document).bind('wlapi_document_changed', function(event, doc) {
try {
$('#loading-overlay').fadeOut();
var active_tab = document.location.hash || DEFAULT_PERSPECTIVE;
- $(window).resize();
-
console.log("Initial tab is:", active_tab)
$.wiki.switchToTab(active_tab);
},