Template:Amplino
From 2012e.igem.org
(Difference between revisions)
Line 100: | Line 100: | ||
dbgout('moveToAnchor error: ' + err); | dbgout('moveToAnchor error: ' + err); | ||
} | } | ||
+ | } | ||
+ | |||
+ | function updateContentEditLink() { | ||
+ | if (!wgUserName) { | ||
+ | return; | ||
+ | } | ||
+ | |||
+ | var page = currentPage ? currentPage : 'Home'; | ||
+ | var url = location.pathname + '/' + page + '?action=edit'; | ||
+ | $("#menubar ul li:nth-child(3)").attr('href', url); | ||
} | } | ||
Line 123: | Line 133: | ||
$(window).trigger('page_init'); | $(window).trigger('page_init'); | ||
rewriteLinks($("#Amplino-container")); | rewriteLinks($("#Amplino-container")); | ||
- | + | updateContentEditLink(); | |
$("#Amplino-container").fadeTo(200,1).delay(200).queue(function(n) { | $("#Amplino-container").fadeTo(200,1).delay(200).queue(function(n) { | ||
if(anchor) moveToAnchor(anchor); n(); | if(anchor) moveToAnchor(anchor); n(); |
Revision as of 13:48, 29 April 2012