Team:TU Delft/test
From 2010.igem.org
(Difference between revisions)
Line 43: | Line 43: | ||
var in_frame_test = 1; | var in_frame_test = 1; | ||
var ampersandStr = String.fromCharCode(38); | var ampersandStr = String.fromCharCode(38); | ||
+ | var loading_home = false; | ||
function dbgout(msg) { | function dbgout(msg) { | ||
Line 118: | Line 119: | ||
} | } | ||
- | function loadPage(page) | + | function loadPage(page, ) |
{ | { | ||
currentPage = page; | currentPage = page; | ||
Line 124: | Line 125: | ||
$(window).trigger('page_close'); | $(window).trigger('page_close'); | ||
- | $("#TUD-loading-panel").show(); | + | if(!loading_home) |
+ | $("#TUD-loading-panel").show(); | ||
+ | loading_home = false; | ||
var processPage = function(next) { | var processPage = function(next) { | ||
Line 163: | Line 166: | ||
} | } | ||
} else { | } else { | ||
+ | loading_home = true; | ||
setHash('Home'); | setHash('Home'); | ||
} | } |