Merge "Use JSONP for gender query to avoid cross-domain issues"

This commit is contained in:
jenkins-bot 2014-01-17 01:44:56 +00:00 committed by Gerrit Code Review
commit fa63bdee3f

View file

@ -489,7 +489,8 @@
// TODO this is ugly as hell, let's fix this in core.
new mw.Api( {
ajax: {
url: repoData.apiUrl || mw.util.wikiScript( 'api' )
url: repoData.apiUrl || mw.util.wikiScript( 'api' ),
dataType: 'jsonp'
}
} ).get( {
action: 'query',