geocomplete_rails 1.6.5 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/geocomplete.js +11 -5
- data/lib/geocomplete_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efd5f7b3628c3be9816556b69973be31aa166a12
|
|
4
|
+
data.tar.gz: cb1457596ddddeabaccd453a998c10c680c1149c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8884a01ee79a8fc245ce2ddde1d47158dc00be95b71a2c1b31cc3a64a80c9377defd1c0bb711028b09baa05d91d9955848217b3a562533f214667d5960d58227
|
|
7
|
+
data.tar.gz: f79151f21f07d8b0eda802ec0f5009c3895b9c13ce2311d52ee5f9d8cc902d33f3b954d18832c85f384789f10f0c31c94b63af6f16ea81a2b7e8583b70fd3044
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* jQuery Geocoding and Places Autocomplete Plugin - V 1.
|
|
2
|
+
* jQuery Geocoding and Places Autocomplete Plugin - V 1.7.0
|
|
3
3
|
*
|
|
4
|
-
* @author Martin Kleppe <kleppe@ubilabs.net>,
|
|
5
|
-
* @author Ubilabs http://ubilabs.net,
|
|
4
|
+
* @author Martin Kleppe <kleppe@ubilabs.net>, 2016
|
|
5
|
+
* @author Ubilabs http://ubilabs.net, 2016
|
|
6
6
|
* @license MIT License <http://www.opensource.org/licenses/mit-license.php>
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -84,6 +84,12 @@
|
|
|
84
84
|
|
|
85
85
|
this.options = $.extend(true, {}, defaults, options);
|
|
86
86
|
|
|
87
|
+
// This is a fix to allow types:[] not to be overridden by defaults
|
|
88
|
+
// so search results includes everything
|
|
89
|
+
if (options && options.types) {
|
|
90
|
+
this.options.types = options.types;
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
this.input = input;
|
|
88
94
|
this.$input = $(input);
|
|
89
95
|
|
|
@@ -358,8 +364,8 @@
|
|
|
358
364
|
}
|
|
359
365
|
|
|
360
366
|
// Get the first suggestion's text.
|
|
361
|
-
var $span1 = $(".pac-container:
|
|
362
|
-
var $span2 = $(".pac-container:
|
|
367
|
+
var $span1 = $(".pac-container:visible .pac-item" + selected + ":first span:nth-child(2)").text();
|
|
368
|
+
var $span2 = $(".pac-container:visible .pac-item" + selected + ":first span:nth-child(3)").text();
|
|
363
369
|
|
|
364
370
|
// Adds the additional information, if available.
|
|
365
371
|
var firstResult = $span1;
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geocomplete_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guy Israeli
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2016-04-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
89
|
version: '0'
|
|
90
90
|
requirements: []
|
|
91
91
|
rubyforge_project:
|
|
92
|
-
rubygems_version: 2.4.
|
|
92
|
+
rubygems_version: 2.4.5.1
|
|
93
93
|
signing_key:
|
|
94
94
|
specification_version: 4
|
|
95
95
|
summary: jQuery Geocoding and Places Autocomplete Plugin
|