Team:UT-Tokyo/Templates/BeginContent

From 2011.igem.org

(Difference between revisions)
Line 400: Line 400:
UT_Tokyo.transit = function(toUrl) {
UT_Tokyo.transit = function(toUrl) {
 +
  if (toUrl == UT_Tokyo.currentUrl) return;
 +
   // toUrl must start with '2011.igem.org/Team:UT-Tokyo'
   // toUrl must start with '2011.igem.org/Team:UT-Tokyo'
   var fullPageName = toUrl.match(/2011.igem.org\/(Team:UT-Tokyo.*)$/);
   var fullPageName = toUrl.match(/2011.igem.org\/(Team:UT-Tokyo.*)$/);
Line 439: Line 441:
       // unblock
       // unblock
       $('#pageContent').unblock();
       $('#pageContent').unblock();
-
        
+
 
 +
       UT_Tokyo.currentUrl = toUrl;
       UT_Tokyo.needHandling = true;
       UT_Tokyo.needHandling = true;
        
        
Line 498: Line 501:
        
        
       toUrl = $(this).attr('href');
       toUrl = $(this).attr('href');
-
      if (toUrl == UT_Tokyo.currentUrl) return;
 
       location.hash = UT_Tokyo.hashFromUrl(toUrl);
       location.hash = UT_Tokyo.hashFromUrl(toUrl);
       UT_Tokyo.transit(toUrl);
       UT_Tokyo.transit(toUrl);

Revision as of 09:56, 27 August 2011