Template:Amplino
From 2012e.igem.org
(Difference between revisions)
Line 196: | Line 196: | ||
var txt = $(this).text(); | var txt = $(this).text(); | ||
var url = this.href; | var url = this.href; | ||
- | |||
if(this.hash) { | if(this.hash) { | ||
Line 203: | Line 202: | ||
if (anchor.substring(0,5)!='page=') | if (anchor.substring(0,5)!='page=') | ||
this.href = '#page=' + currentPage + ampersandStr + 'anchor=' + anchor; | this.href = '#page=' + currentPage + ampersandStr + 'anchor=' + anchor; | ||
- | } else if(txt != "edit") | + | } else if(txt != "edit") { |
+ | alert(this.href); | ||
this.href = this.href.replace("https://2012e.igem.org/Team:Amplino/", "#page="); | this.href = this.href.replace("https://2012e.igem.org/Team:Amplino/", "#page="); | ||
+ | } | ||
// dbgout('rewriting ' + url + ' to ' + this.href); | // dbgout('rewriting ' + url + ' to ' + this.href); |
Revision as of 14:02, 27 May 2012