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

Revision as of 15:09, 15 October 2011

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