MediaWiki:Common.js: Difference between revisions
Content deleted Content added
load MediaWiki:EditTemplates.js by default for logged in users |
split thank you page js to own page MediaWiki:ThankYouPage.js, clean up comments for other inclusions |
||
Line 438:
});
// Code for Thank
* e.g. https://donate.wikimedia.org/wiki/Thank_You▼
if ( mw.config.get( 'wgTitle' ).split('/')[0] === 'Thank You' ) {
mw.loader.load( '/w/index.php?title=MediaWiki:ThankYouPage.js&action=raw&ctype=text/javascript' );
}
▲ //
var supportPages = [ 'Ways to Give', 'Problems donating', 'Cancel or change recurring giving', ▼
'Matching Gifts', 'Support Page', 'FAQ', 'Tax deductibility' ]
▲ * Edit at https://donate.wikimedia.org/wiki/MediaWiki:SupportPage.js
▲ 'Cancel or change recurring 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' );
}
//
▲ * Edit at https://donate.wikimedia.org/wiki/MediaWiki:EditTemplates.js
if ( mw.config.get( 'wgUserName' ) !== null ) {
mw.loader.load( '/w/index.php?title=MediaWiki:EditTemplates.js&action=raw&ctype=text/javascript' );
|