Team:ETH Zurich/Templates/HeaderNew

From 2011.igem.org

(Difference between revisions)
Line 14: Line 14:
$('#loginMenu').hide();
$('#loginMenu').hide();
$('#editMenu').show();
$('#editMenu').show();
-
var editLink = document.URL;
+
var docLink = document.URL;
if (document.URL.indexOf("?") != -1)
if (document.URL.indexOf("?") != -1)
{
{
-
   editLink += '&';
+
   docLink += '&';
}
}
else
else
{
{
-
   editLink += '?';
+
   docLink += '?';
}
}
-
editLink += 'action=edit';
 
-
$('#editLink').attr('href', editLink);
+
$('#editLink').attr('href', docLink + 'action=edit');
-
alert('Logged in!');
+
$('#historyLink').attr('href', docLink + 'action=history');
 +
 
}
}

Revision as of 15:12, 15 October 2011

Menu image preload Menu image preload Menu image preload Menu image preload Menu image preload Menu image preload