Team:TU Delft/test

From 2010.igem.org

(Difference between revisions)
Line 221: Line 221:
var anchor = this.hash.substring(1);
var anchor = this.hash.substring(1);
alert(anchor);
alert(anchor);
-
if (anchor.substring('page=')!='=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")

Revision as of 20:29, 26 October 2010