MediaWiki:Common.js: Difference between revisions
Content deleted Content added
No edit summary |
add 'Workplace giving' |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1:
* MediaWiki:Common.js - Any JavaScript here will be loaded for all users on every page load.
**/
Line 39:
}
});
});
}
}
});
}
});
}
});
};
});
▲ enableCountrySelect();
}
▲ if ( document.getElementById('country-select') ) {
}
▲ enableCountrySelect();
// Code for Thank You pages - https://donate.wikimedia.org/wiki/MediaWiki:ThankYouPage.js
Line 97 ⟶ 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' );
|