Team:TU Delft/header2

From 2010.igem.org

(Difference between revisions)
Line 74: Line 74:
function processPage()  
function processPage()  
{
{
-
alert(isDefined('page_init'));
+
$(window).trigger('page_init');
-
if(isDefined('page_init'))
+
-
page_init();
+
rewriteLinks($("#load"));
rewriteLinks($("#load"));
}
}
Line 84: Line 82:
activePage = page;
activePage = page;
var url = wgServer + "/Team:TU_Delft/" + page + "?action=render";
var url = wgServer + "/Team:TU_Delft/" + page + "?action=render";
 +
$(window).trigger('page_close');
$("#load").fadeOut(200);
$("#load").fadeOut(200);
-
if (isDefined('page_init'))
 
-
delete page_init;
 
$.get(url, function(data) {
$.get(url, function(data) {

Revision as of 16:32, 23 July 2010