Template:2011FR/Form-section-links: Difference between revisions
Content deleted Content added
$(document).ready |
monthly link dosn't really need to open a new tab |
||
Line 17:
</style>
<ul class="form-info-links">
<li><a id="monthly-link
<li><a id="ways-to-give-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-otherways-short}}<html></a></li>
Line 37:
// parseParams is defined in MediaWiki:Common.js
$(document).ready(function() {
var paramsOut = parseParams(window.location.href); // note that 'paramsOut = paramsIn' won't work, it just creates a reference to paramsIn▼
var baseURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?';
▲ var paramsOut = parseParams(window.location.href); //
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
document.getElementById('monthly-link').href = baseURL + $.param(paramsOut);
|