Index: branches/SemanticMaps0.8/includes/forminputs/jquery.mapforminput.js |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | var updateButton = $( '<button />' ).text( mediaWiki.msg( 'semanticmaps-updatemap' ) ); |
59 | 59 | |
60 | 60 | updateButton.click( function() { |
61 | | - var locations = coord.split( this.input.attr( 'value' ) ); |
| 61 | + var locations = coord.split( self.input.attr( 'value' ) ); |
62 | 62 | var location = coord.parse( locations[0] ); |
63 | 63 | |
64 | 64 | if ( location !== false ) { |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | var geoButton = $( '<button />' ).text( mediaWiki.msg( 'semanticmaps_lookupcoordinates' ) ); |
100 | 100 | |
101 | 101 | geoButton.click( function() { |
102 | | - self.geocodeAddress( this.geofield.attr( 'value' ) ); |
| 102 | + self.geocodeAddress( self.geofield.attr( 'value' ) ); |
103 | 103 | return false; |
104 | 104 | } ); |
105 | 105 | |