MediaWiki:Common.js: Difference between revisions
Content deleted Content added
countrySelect DE/CH should redirect to chapter sites |
No edit summary |
||
Line 74:
if ( countrySelect.value === 'DE' ) {
window.location = 'https://donate.wikimedia.org/?country=DE';
} else if ( countrySelect.value === 'CH ' ) {▼
}▼
▲ if ( countrySelect.value === 'CH ' ) {
window.location = 'https://donate.wikimedia.org/?country=CH';
▲ } else {
var url = new URL( location.href );▼
url.searchParams.set( 'country', countrySelect.value );▼
window.location = url.toString();▼
}
▲ var url = new URL( location.href );
▲ url.searchParams.set( 'country', countrySelect.value );
▲ window.location = url.toString();
}
});
|