Template:2011FR/Form-section-links: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
do this more cleanly with parameters as JS objects
No edit summary
Line 53: Line 53:


var paramsOut = paramsIn;
var paramsOut = paramsIn;
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);

Revision as of 23:03, 25 January 2012