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 | + | var docLink = document.URL; |
if (document.URL.indexOf("?") != -1) | if (document.URL.indexOf("?") != -1) | ||
{ | { | ||
- | + | docLink += '&'; | |
} | } | ||
else | else | ||
{ | { | ||
- | + | docLink += '?'; | |
} | } | ||
- | |||
- | $('#editLink').attr('href', | + | $('#editLink').attr('href', docLink + 'action=edit'); |
- | + | $('#historyLink').attr('href', docLink + 'action=history'); | |
+ | |||
} | } |