Template:Footer/Links/Default: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 53:
var paramsOut = parseParams(window.location.href); // create an object with the current querystring parameters
if (showOnetimeLink) {
// We're on a monthly page, fix up the onetime link and show that instead
paramsOut['form-countryspecific'] = 'Form-countryspecific-control';
document.getElementById('onetime-link').href = baseURL + $.param(paramsOut);
$('#onetime-link').show();
} else if (showMonthlyLink) {
// We're not on a monthly page. So show a correct link to one.
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
|