Template:Form-template/Form-template-default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 59: Line 59:
var qs = regex.exec( window.location.search );
var qs = regex.exec( window.location.search );
return qs == null ? '' : qs[1];
return qs == null ? '' : qs[1];
}

function getLandingPage() {
var path = "</html>{{{landing-page|default}}}<html>";

if( path == "default") {
pathArray = window.location.pathname.split( '/' );
return pathArray[2];
}
else return path;
}
}



Revision as of 18:14, 2 February 2012