MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
// Code for support pages - https://donate.wikimedia.org/wiki/MediaWiki:SupportPage.js |
// Code for support pages - https://donate.wikimedia.org/wiki/MediaWiki:SupportPage.js |
||
// TODO: have a better way to trigger this |
|||
var supportPages = [ 'Ways to Give', 'Problems donating', 'Cancel or change recurring giving', |
var supportPages = [ 'Ways to Give', 'Problems donating', 'Cancel or change recurring giving', |
||
'Matching Gifts', 'Support Page', 'FAQ', 'Tax deductibility' |
'Matching Gifts', 'Support Page', 'FAQ', 'Tax deductibility', |
||
'US State Solicitation Disclosures' ]; |
|||
if ( supportPages.indexOf( mw.config.get( 'wgTitle' ).split('/')[0] ) !== -1 ) { |
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' ); |
mw.loader.load( '/w/index.php?title=MediaWiki:SupportPage.js&action=raw&ctype=text/javascript' ); |