Template:Footer/Links/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 15: Line 15:
margin-left: 0 !important;
margin-left: 0 !important;
}
}

#monthly-link{
display: none;
}

#onetime-link{
display: none;
}

</style>
</style>
<ul class="form-info-links">
<ul class="form-info-links">
Line 46: Line 55:
paramsOut['form-countryspecific'] = 'Form-countryspecific-control';
paramsOut['form-countryspecific'] = 'Form-countryspecific-control';
document.getElementById('onetime-link').href = baseURL + $.param(paramsOut);
document.getElementById('onetime-link').href = baseURL + $.param(paramsOut);
$('#monthly-link').hide();
$('#onetime-link').show();
$('#onetime-link').show();
} else if (paramsOut['form-countryspecific'] == 'Form-countryspecific-recurring') {
} else if (paramsOut['form-countryspecific'] == 'Form-countryspecific-recurring') {
// We're on a recurring page, hide both links
// We're on a recurring page, hide both links
$('#monthly-link').hide();
//$('#monthly-link').hide();
$('#onetime-link').hide();
//$('#onetime-link').hide();
} else {
} else {
// 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);
document.getElementById('monthly-link').href = baseURL + $.param(paramsOut);
$('#monthly-link').show();
}
}
});
});

Revision as of 05:45, 29 January 2012