Initial version of geolocation support
Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
This commit is contained in:
committed by
Amir E. Aharoni
parent
fde6b18e40
commit
64c26ad137
14
resources/js/ext.uls.geoclient.js
Normal file
14
resources/js/ext.uls.geoclient.js
Normal 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 ) );
|
||||
Reference in New Issue
Block a user