Permalink
Browse files

Fixed pin drop selection changing value of search box to "drop a pin."

  • Loading branch information...
1 parent d4ea119 commit 897e27c89423b5c2ddad9ff66b82fd67267e0762 @juliamae juliamae committed Nov 28, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui.geo_autocomplete.js
@@ -104,8 +104,8 @@ $.widget( "ui.geo_autocomplete", {
if (self.options.pinDrop) {
_parsed.push({
- value: 'Drop a pin',
- label: _request.term
+ value: _request.term,
+ label: 'Drop a pin'
});
}
}
@@ -128,7 +128,7 @@ $.widget( "ui.geo_autocomplete", {
'" width="' + this.mapwidth + '" height="' + this.mapheight + '" /> ' +
_item.label.replace(/,/gi, ',<br/>') + '<br clear="both" /></a>'
} else if (this.pinDrop) {
- return '<a style="padding-left:' + (this.mapwidth + 5) + 'px;">' + _item.value + '</a>';
+ return '<a style="padding-left:' + (this.mapwidth + 5) + 'px;">' + _item.label + '</a>';
}
},

0 comments on commit 897e27c

Please sign in to comment.