Index: trunk/extensions/SemanticMaps/includes/services/GoogleMaps3/ext.sm.googlemapsinput.js |
— | — | @@ -11,22 +11,22 @@ |
12 | 12 | |
13 | 13 | jQuery(document).ready(function() { |
14 | 14 | if ( true ) { // TODO |
15 | | - for ( i in window.maps.googlemaps3_forminputs ) { |
16 | | - if ( window.maps.googlemaps3_forminputs[i].ismulti ) { |
17 | | - jQuery( '#' + i + '_forminput' ).gmapsmultiinput( i, window.maps.googlemaps3_forminputs[i] ); |
| 15 | + for ( i in window.mwmaps.googlemaps3_forminputs ) { |
| 16 | + if ( window.mwmaps.googlemaps3_forminputs[i].ismulti ) { |
| 17 | + jQuery( '#' + i + '_forminput' ).gmapsmultiinput( i, window.mwmaps.googlemaps3_forminputs[i] ); |
18 | 18 | } |
19 | 19 | else { |
20 | | - jQuery( '#' + i + '_forminput' ).googlemapsinput( i, window.maps.googlemaps3_forminputs[i] ); |
| 20 | + jQuery( '#' + i + '_forminput' ).googlemapsinput( i, window.mwmaps.googlemaps3_forminputs[i] ); |
21 | 21 | } |
22 | 22 | } |
23 | 23 | } |
24 | 24 | else { |
25 | 25 | alert( mediaWiki.msg( 'maps-googlemaps3-incompatbrowser' ) ); |
26 | 26 | |
27 | | - for ( i in window.maps.googlemaps3_forminputs ) { |
| 27 | + for ( i in window.mwmaps.googlemaps3_forminputs ) { |
28 | 28 | jQuery( '#' + i + '_forminput' ) |
29 | 29 | .html( $( '<input />' ) |
30 | | - .attr( { 'name': i, 'value': semanticMaps.buildInputValue( window.maps.googlemaps3_forminputs[i].locations ) } ) |
| 30 | + .attr( { 'name': i, 'value': semanticMaps.buildInputValue( window.mwmaps.googlemaps3_forminputs[i].locations ) } ) |
31 | 31 | ); |
32 | 32 | } |
33 | 33 | } |
Index: trunk/extensions/SemanticMaps/includes/services/YahooMaps/ext.sm.yahoomaps.js |
— | — | @@ -11,14 +11,14 @@ |
12 | 12 | |
13 | 13 | jQuery(document).ready(function() { |
14 | 14 | if ( true ) { |
15 | | - for ( i in window.maps.yahoomaps_forminputs ) { |
16 | | - jQuery( '#' + i + '_forminput' ).yahoomapsinput( i, window.maps.yahoomaps_forminputs[i] ); |
| 15 | + for ( i in window.mwmaps.yahoomaps_forminputs ) { |
| 16 | + jQuery( '#' + i + '_forminput' ).yahoomapsinput( i, window.mwmaps.yahoomaps_forminputs[i] ); |
17 | 17 | } |
18 | 18 | } |
19 | 19 | else { |
20 | 20 | alert( mediaWiki.msg( 'maps-yahoomaps-incompatbrowser' ) ); |
21 | 21 | |
22 | | - for ( i in window.maps.yahoomaps_forminputs ) { |
| 22 | + for ( i in window.mwmaps.yahoomaps_forminputs ) { |
23 | 23 | jQuery( '#' + i + '_forminput' ).text( mediaWiki.msg( 'maps-load-failed' ) ); |
24 | 24 | } |
25 | 25 | } |
Index: trunk/extensions/SemanticMaps/includes/services/OpenLayers/ext.sm.openlayersinput.js |
— | — | @@ -11,14 +11,14 @@ |
12 | 12 | |
13 | 13 | jQuery(document).ready(function() { |
14 | 14 | if ( true ) { |
15 | | - for ( i in window.maps.openlayers_forminputs ) { |
16 | | - jQuery( '#' + i + '_forminput' ).openlayersinput( i, window.maps.openlayers_forminputs[i] ); |
| 15 | + for ( i in window.mwmaps.openlayers_forminputs ) { |
| 16 | + jQuery( '#' + i + '_forminput' ).openlayersinput( i, window.mwmaps.openlayers_forminputs[i] ); |
17 | 17 | } |
18 | 18 | } |
19 | 19 | else { |
20 | 20 | alert( mediaWiki.msg( 'maps-openlayers-incompatbrowser' ) ); |
21 | 21 | |
22 | | - for ( i in window.maps.openlayers_forminputs ) { |
| 22 | + for ( i in window.mwmaps.openlayers_forminputs ) { |
23 | 23 | jQuery( '#' + i + '_forminput' ).text( mediaWiki.msg( 'maps-load-failed' ) ); |
24 | 24 | } |
25 | 25 | } |
Index: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php |
— | — | @@ -189,7 +189,7 @@ |
190 | 190 | |
191 | 191 | return Html::inlineScript( |
192 | 192 | MapsMapper::getBaseMapJSON( $this->service->getName() . '_forminputs' ) |
193 | | - . "maps.{$this->service->getName()}_forminputs.{$mapName}=" . FormatJson::encode( $object ) . ';' |
| 193 | + . "mwmaps.{$this->service->getName()}_forminputs.{$mapName}=" . FormatJson::encode( $object ) . ';' |
194 | 194 | ); |
195 | 195 | } |
196 | 196 | |