MediaWiki:Common.js: Difference between revisions
Content deleted Content added
extra code for country select: translations etc |
add 'Workplace giving' |
||
(8 intermediate revisions by the same user not shown) | |||
Line 39:
}
});
});
}
}
});
}
});
}
});
};
document.getElementById('country-change').addEventListener( 'click', function(e) {
enableCountrySelect();▼
document.getElementById('country-change-select').style.display = 'block';
});
}
if ( document.getElementById('geolocate-error') ) {
enableCountrySelect();
}
// Code for Thank You pages - https://donate.wikimedia.org/wiki/MediaWiki:ThankYouPage.js
Line 89 ⟶ 96:
var supportPages = [ 'Ways to Give', 'Problems donating', 'Cancel or change recurring giving',
'Matching Gifts', 'Support Page', 'FAQ', 'Tax deductibility',
'US State Solicitation Disclosures', 'Draft:FAQ', 'Workplace giving' ];
if ( supportPages.indexOf( mw.config.get( 'wgTitle' ).split('/')[0] ) !== -1 ) {
mw.loader.load( '/w/index.php?title=MediaWiki:SupportPage.js&action=raw&ctype=text/javascript' );
|