Team:ETH Zurich/Templates/HeaderNew

From 2011.igem.org

(Difference between revisions)
Line 13: Line 13:
a.href = document.URL;
a.href = document.URL;
         var docPath = a.pathname + a.search;
         var docPath = a.pathname + a.search;
-
        if (docPath.indexOf("?") != -1)
 
-
        {
 
-
    var docLink = docPath + '&';
 
-
        }
 
-
        else
 
-
        {
 
-
    var docLink = docPath + '?';
 
-
        }
 
-
alert(docLink);
 
if ($('#pt-logout').length)  
if ($('#pt-logout').length)  
Line 28: Line 19:
$('#editMenu').show();
$('#editMenu').show();
-
$('#editLink').attr('href', docLink + 'action=edit');
+
// $('#editLink').attr('href', docLink + 'action=edit');
-
$('#historyLink').attr('href', docLink + 'action=history');
+
$('#historyLink').attr('href', $('.left-menu').children().get(0).children().get(2).children().get(0).href);
$('#logoutLink').attr('href', $('#pt-logout').children().get(0).href);
$('#logoutLink').attr('href', $('#pt-logout').children().get(0).href);
}
}

Revision as of 12:13, 17 October 2011

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