Permalink
Browse files

Corrected the bug reported in #37

  • Loading branch information...
palewire committed Jul 10, 2012
1 parent e20dd5c commit a87052a11d79eec688bac73d8f7e9614c88524cb
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.geocodify.js
View
@@ -258,10 +258,10 @@
close.show();
close.click($this.reset);
} else if (count === 1 && force) {
- settings.onSelect(results[0]);
+ settings.onSelect(keep[0]);
$this.reset();
$this.previousSearch = results[0].formatted_address;
- input.val(results[0].formatted_address);
+ input.val(keep[0].formatted_address);
} else {
var ul = $("<ul>").css({'margin': 0, 'padding': 0, 'background-color': 'white'});
$.each(keep, function(i, val) {

0 comments on commit a87052a

Please sign in to comment.