Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD DIARY

From 2012.igem.org

(Difference between revisions)
Line 69: Line 69:
         $('#cam_diary_link').click(function() {
         $('#cam_diary_link').click(function() {
             if (pathname[2]=="Diary"){
             if (pathname[2]=="Diary"){
-
              alert(pathname[2])
 
               location.replace("https://2012.igem.org/Team:Cambridge/Diary" + "/"+ pathname[3]);
               location.replace("https://2012.igem.org/Team:Cambridge/Diary" + "/"+ pathname[3]);
               return false;
               return false;
             }
             }
             else if (pathname[2] =="Lab_book"){
             else if (pathname[2] =="Lab_book"){
-
                alert(pathname[2])
 
               location.replace("https://2012.igem.org/Team:Cambridge/Diary" + "/"+ pathname[3]);
               location.replace("https://2012.igem.org/Team:Cambridge/Diary" + "/"+ pathname[3]);
               return false;
               return false;
             }
             }
 +
            else {
 +
              location.replace("https://2012.igem.org/Team:Cambridge/Diary/Week_1");
 +
              return false;
 +
          }
         });
         });

Revision as of 17:57, 23 August 2012