Initial version of geolocation support

Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
This commit is contained in:
Niklas Laxström
2012-08-30 10:23:59 +00:00
committed by Amir E. Aharoni
parent fde6b18e40
commit 64c26ad137
6 changed files with 63 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
( function( mw, $ ) {
"use strict";
window.setGeo = function ( data ) {
window.GEO = data;
}
var settings = {
cache: true,
dataType: "jsonp",
jsonpCallback: "setGeo"
};
$.ajax( mw.config.get( 'wgULSGeoService' ), settings );
}( mediaWiki, jQuery ) );