Template:Footer/Links/Default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Pgehres (WMF) (talk | contribs)
No edit summary
Pgehres (WMF) (talk | contribs)
No edit summary
Line 39: Line 39:
// We're on a monthly page, fix up the onetime link and show that instead
// We're on a monthly page, fix up the onetime link and show that instead
paramsOut['form-countryspecific'] = 'Form-countryspecific-control';
paramsOut['form-countryspecific'] = 'Form-countryspecific-control';
document.getElementById('onetime-link').href = baseURL + $.param(paramsOut);
$('#onetime-link').attr('href', baseURL + $.param(paramsOut));
$('#onetime-link').show();
$('#onetime-link').show();
} else if (showMonthlyLink) {
} else if (showMonthlyLink) {
// We're not on a monthly page. So show a correct link to one.
// We're not on a monthly page. So show a correct link to one.
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
document.getElementById('monthly-link').href = baseURL + $.param(paramsOut);
$('#monthly-link').attr('href', baseURL + $.param(paramsOut));
$('#monthly-link').show();
$('#monthly-link').show();
}
}

Revision as of 00:17, 21 September 2012