Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 897e27c89423b5c2ddad9ff66b82fd67267e0762 1 parent d4ea119
Julia West juliamae authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui.geo_autocomplete.js
6 ui.geo_autocomplete.js
View
@@ -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>';
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.