projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
116ed52
)
Roo/bootstrap/LocationPicker.js
author
Edward
<edward@roojs.com>
Thu, 28 May 2015 05:36:44 +0000
(13:36 +0800)
committer
Edward
<edward@roojs.com>
Thu, 28 May 2015 05:36:44 +0000
(13:36 +0800)
Roo/bootstrap/LocationPicker.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/LocationPicker.js
b/Roo/bootstrap/LocationPicker.js
index
5203412
..
1ce25cd
100644
(file)
--- a/
Roo/bootstrap/LocationPicker.js
+++ b/
Roo/bootstrap/LocationPicker.js
@@
-213,7
+213,7
@@
Roo.extend(Roo.bootstrap.LocationPicker, Roo.bootstrap.Component, {
this.gMapContext.geodecoder.geocode({
latLng: this.gMapContext.location
}, function(results, status) {
- Roo.log(results);
+
if (status == google.maps.GeocoderStatus.OK && results.length > 0) {
_this.gMapContext.locationName = results[0].formatted_address;
_this.gMapContext.addressComponents = _this.address_component_from_google_geocode(results[0].address_components);