Skip to content

Commit

Permalink
Fixed throbber
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Nov 8, 2013
1 parent c1eb9cf commit 0ed6b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Control.Geocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},

_geocodeResult: function (results) {
this._input.className = this._input.className.replace(' leaflet-control-geocoder-throbber', '');
this._form.className = this._form.className.replace(' leaflet-control-geocoder-throbber', '');
if (results.length === 1) {
this.markGeocode(results[0]);
} else if (results.length > 0) {
Expand Down Expand Up @@ -108,7 +108,7 @@
_geocode: function(event) {
L.DomEvent.preventDefault(event);

this._input.className += ' leaflet-control-geocoder-throbber';
this._form.className += ' leaflet-control-geocoder-throbber';
this._clearResults();
this.options.geocoder.geocode(this._input.value, this._geocodeResult, this);

Expand Down

0 comments on commit 0ed6b76

Please sign in to comment.