autocomplete_address_safe 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascript/googlemaps.js +7 -8
- data/lib/autocomplete_address_safe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63d5cd65f8129baeca1cb2324064af96e0306f6e
|
4
|
+
data.tar.gz: b034ed1ee6354ccf2666270e28487f1a1e55a963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1638aca92593015d7dcddc66783e9f3b82fc8bce8b6ef312c452af31ff1754956e9bb6f2649cba0cdd7811c6719b8da19da20a5a5592650baf7698335d766941
|
7
|
+
data.tar.gz: dc61ce43fb17f0fd02eae1eb91aa869775b6a529780dfc3577bb27161de2a9cffb77b3af4711a8eb9d333340a6843dd7b69a5f535ceb7ba9b8af8e179d4bbf7e
|
@@ -32,15 +32,14 @@ function fillInAddress() {
|
|
32
32
|
document.getElementById(component).value = '';
|
33
33
|
document.getElementById(component).disabled = false;
|
34
34
|
}*/
|
35
|
-
|
36
|
-
console.log(
|
37
|
-
|
38
|
-
|
35
|
+
console.log(place);
|
36
|
+
console.log(place.geometry.location.lat());
|
37
|
+
console.log(place.geometry.location.lng());
|
39
38
|
//Get each component of the address from the place details
|
40
39
|
//and fill the corresponding field on the form.
|
41
40
|
for (var i = 0; i < place.address_components.length; i++) {
|
42
41
|
var addressType = place.address_components[i].types[0];
|
43
|
-
|
42
|
+
|
44
43
|
if(__AutocompleteAddress.options[addressType]){
|
45
44
|
console.log("entro -> "+ addressType);
|
46
45
|
if (componentForm[addressType]) {
|
@@ -49,9 +48,9 @@ function fillInAddress() {
|
|
49
48
|
}
|
50
49
|
}
|
51
50
|
}
|
52
|
-
|
53
|
-
document.getElementById('lat').value = place.geometry.location.
|
54
|
-
document.getElementById('long').value = place.geometry.location.
|
51
|
+
|
52
|
+
document.getElementById('lat').value = place.geometry.location.lat();
|
53
|
+
document.getElementById('long').value = place.geometry.location.lng();
|
55
54
|
}
|
56
55
|
|
57
56
|
// Bias the autocomplete object to the user's geographical location,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autocomplete_address_safe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saul Felipe Ramirez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|