r84098 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84097‎ | r84098 | r84099 >
Date:12:55, 16 March 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed small js issue
Modified paths:
  • /branches/SemanticMaps0.8/includes/forminputs/jquery.mapforminput.js (modified) (history)

Diff [purge]

Index: branches/SemanticMaps0.8/includes/forminputs/jquery.mapforminput.js
@@ -57,7 +57,7 @@
5858 var updateButton = $( '<button />' ).text( mediaWiki.msg( 'semanticmaps-updatemap' ) );
5959
6060 updateButton.click( function() {
61 - var locations = coord.split( this.input.attr( 'value' ) );
 61+ var locations = coord.split( self.input.attr( 'value' ) );
6262 var location = coord.parse( locations[0] );
6363
6464 if ( location !== false ) {
@@ -98,7 +98,7 @@
9999 var geoButton = $( '<button />' ).text( mediaWiki.msg( 'semanticmaps_lookupcoordinates' ) );
100100
101101 geoButton.click( function() {
102 - self.geocodeAddress( this.geofield.attr( 'value' ) );
 102+ self.geocodeAddress( self.geofield.attr( 'value' ) );
103103 return false;
104104 } );
105105

Status & tagging log