Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD DIARY

From 2012.igem.org

(Difference between revisions)
Line 70: Line 70:
             if (pathname[2]=="Diary"){
             if (pathname[2]=="Diary"){
               alert(pathname[2]);
               alert(pathname[2]);
-
               window.location.replace("https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3]);
+
               url = "https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3];
             }
             }
             else if (pathname[2]=="Lab_book"){
             else if (pathname[2]=="Lab_book"){
-
               window.location.replace("https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3]);
+
               url = "https://2012.igem.org/Team:Cambridge/Diary/" + pathname[3];
             {
             {
             else{
             else{
-
             window.location.replace("https://2012.igem.org/Team:Cambridge/Diary/Week_1" );
+
             url = "https://2012.igem.org/Team:Cambridge/Diary/Week_1" ;
           }
           }
-
 
+
            window.location.replace(url);
             return false;
             return false;
         });
         });

Revision as of 17:44, 23 August 2012