MediaWiki:Common.js: Difference between revisions
Content deleted Content added
countrySelect DE/CH should redirect to chapter sites |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 74:
if ( countrySelect.value === 'DE' ) {
window.location = 'https://donate.wikimedia.org/?country=DE';
}▼
▲ 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();
}
});
|