Team:ETH Zurich/Templates/HeaderNew
From 2011.igem.org
(Difference between revisions)
Line 27: | Line 27: | ||
$('#editLink').attr('href', docLink + 'action=edit'); | $('#editLink').attr('href', docLink + 'action=edit'); | ||
$('#historyLink').attr('href', docLink + 'action=history'); | $('#historyLink').attr('href', docLink + 'action=history'); | ||
+ | |||
+ | $('#logoutLink').attr('href', $('#pt-logout').children().get(0).href); | ||
} | } | ||
else | else | ||
Line 35: | Line 37: | ||
a.href = document.URL; | a.href = document.URL; | ||
var docPath = a.pathname + a.search; | var docPath = a.pathname + a.search; | ||
- | $('#loginLink').get(0).href = 'https://2011.igem.org/wiki/index.php?title=Special: | + | $('#loginLink').get(0).href = 'https://2011.igem.org/wiki/index.php?title=Special:U serLogin&returnto=' + encodeURIComponent(docPath); |
} | } | ||