Index: trunk/extensions/SemanticMaps/includes/services/GoogleMaps3/jquery.gmapsmultiinput.js |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * @author Jeroen De Dauw <jeroendedauw at gmail dot com> |
11 | 11 | */ |
12 | 12 | |
13 | | -(function( $ ){ $.fn.gmapsmultiinput = function( mapDivId, options ) { |
| 13 | +(function( $, mw ){ $.fn.gmapsmultiinput = function( mapDivId, options ) { |
14 | 14 | var MAPFILES_URL = "http://maps.gstatic.com/intl/en_us/mapfiles/"; |
15 | 15 | |
16 | 16 | var clickIcon = new google.maps.MarkerImage( |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | } |
57 | 57 | |
58 | 58 | table.append( |
59 | | - '<thead><tr class="ui-widget-header "><th colspan="2">' + mediaWiki.msg( 'semanticmaps-forminput-locations' ) + '</th></tr></thead><tbody>' |
| 59 | + '<thead><tr class="ui-widget-header "><th colspan="2">' + mw.msg( 'semanticmaps-forminput-locations' ) + '</th></tr></thead><tbody>' |
60 | 60 | ); |
61 | 61 | |
62 | 62 | var rowNr = options.locations.length; |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | '<tr id="' + mapDivId + '_addrow"><td width="300px">' + |
70 | 70 | '<input type="text" class="text ui-widget-content ui-corner-all" width="95%" id="' + mapDivId + '_addfield" />' + |
71 | 71 | '</td><td>' + |
72 | | - '<button id="' + mapDivId + '_addbutton" mapid="' + mapDivId + '">' + mediaWiki.msg( 'semanticmaps-forminput-add' ) + '</button>' + |
| 72 | + '<button id="' + mapDivId + '_addbutton" mapid="' + mapDivId + '">' + mw.msg( 'semanticmaps-forminput-add' ) + '</button>' + |
73 | 73 | '</td></tr></tbody>' |
74 | 74 | ); |
75 | 75 | |
— | — | @@ -290,7 +290,7 @@ |
291 | 291 | coord.dms( lat, lon ) + |
292 | 292 | '</td><td>' + |
293 | 293 | '<button class="forminput-remove" rowid="' + i + '" id="' + mapDivId + '_addbutton_' + i + '">' + |
294 | | - mediaWiki.msg( 'semanticmaps-forminput-remove' ) + |
| 294 | + mw.msg( 'semanticmaps-forminput-remove' ) + |
295 | 295 | '</button>' + |
296 | 296 | '</td></tr>' |
297 | 297 | ); |
— | — | @@ -314,4 +314,4 @@ |
315 | 315 | |
316 | 316 | return this; |
317 | 317 | |
318 | | -}; })( jQuery ); |
\ No newline at end of file |
| 318 | +}; })( jQuery, mediaWiki ); |
\ No newline at end of file |
Index: trunk/extensions/SemanticMaps/includes/forminputs/jquery.mapforminput.js |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * @licence GNU GPL v3 |
21 | 21 | * @author Jeroen De Dauw <jeroendedauw at gmail dot com> |
22 | 22 | */ |
23 | | -(function( $ ){ $.fn.mapforminput = function( mapDivId, options ) { |
| 23 | +(function( $, mw ){ $.fn.mapforminput = function( mapDivId, options ) { |
24 | 24 | |
25 | 25 | var self = this; |
26 | 26 | |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | 'size': options.fieldsize |
56 | 56 | } ); |
57 | 57 | |
58 | | - var updateButton = $( '<button />' ).text( mediaWiki.msg( 'semanticmaps-updatemap' ) ); |
| 58 | + var updateButton = $( '<button />' ).text( mw.msg( 'semanticmaps-updatemap' ) ); |
59 | 59 | |
60 | 60 | updateButton.click( function() { |
61 | 61 | var locations = coord.split( self.input.attr( 'value' ) ); |
— | — | @@ -77,13 +77,13 @@ |
78 | 78 | this.geofield = $( '<input />' ).attr( { |
79 | 79 | 'type': 'text', |
80 | 80 | 'id': mapDivId + '_geofield', |
81 | | - 'value': mediaWiki.msg( 'semanticmaps_enteraddresshere' ), |
| 81 | + 'value': mw.msg( 'semanticmaps_enteraddresshere' ), |
82 | 82 | 'style': 'color: darkgray', |
83 | 83 | 'size': options.fieldsize |
84 | 84 | } ); |
85 | 85 | |
86 | 86 | this.geofield.focus( function() { |
87 | | - if ( this.value == mediaWiki.msg( 'semanticmaps_enteraddresshere' ) ) { |
| 87 | + if ( this.value == mw.msg( 'semanticmaps_enteraddresshere' ) ) { |
88 | 88 | this.value = ''; |
89 | 89 | $( this ).css( 'color', '' ); |
90 | 90 | } |
— | — | @@ -91,12 +91,12 @@ |
92 | 92 | |
93 | 93 | this.geofield.blur( function() { |
94 | 94 | if ( this.value == '' ) { |
95 | | - this.value = mediaWiki.msg( 'semanticmaps_enteraddresshere' ); |
| 95 | + this.value = mw.msg( 'semanticmaps_enteraddresshere' ); |
96 | 96 | $( this ).css( 'color', 'darkgray' ); |
97 | 97 | } |
98 | 98 | } ); |
99 | 99 | |
100 | | - var geoButton = $( '<button />' ).text( mediaWiki.msg( 'semanticmaps_lookupcoordinates' ) ); |
| 100 | + var geoButton = $( '<button />' ).text( mw.msg( 'semanticmaps_lookupcoordinates' ) ); |
101 | 101 | |
102 | 102 | geoButton.click( function() { |
103 | 103 | self.geocodeAddress( self.geofield.attr( 'value' ) ); |
— | — | @@ -133,4 +133,4 @@ |
134 | 134 | |
135 | 135 | return this; |
136 | 136 | |
137 | | -}; })( jQuery ); |
\ No newline at end of file |
| 137 | +}; })( jQuery, mediaWiki ); |
\ No newline at end of file |