geocomplete_rails 1.6.5 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3001815772a7bda654b34a52508fee477b1d26f4
4
- data.tar.gz: 5bc8b2ee07cfeef68500314517627047cd0877b9
3
+ metadata.gz: efd5f7b3628c3be9816556b69973be31aa166a12
4
+ data.tar.gz: cb1457596ddddeabaccd453a998c10c680c1149c
5
5
  SHA512:
6
- metadata.gz: c65350dbc608ffb8215c85392ea98c8a45c952dc8cd1dd4f98057ae2f690c347c45f4cd837b5f6e0ab9c2d220f0a3f99ffd4aa67e1d53404fb72947e99d82d98
7
- data.tar.gz: e3302072241edfb27a01c4aaa5cc5799fe0dbe6231a8009359b7ee0ec32f81890e781feca226c836ddb75e87b7bcd93a85e8a644e4fd5916cc2303a21594e17a
6
+ metadata.gz: 8884a01ee79a8fc245ce2ddde1d47158dc00be95b71a2c1b31cc3a64a80c9377defd1c0bb711028b09baa05d91d9955848217b3a562533f214667d5960d58227
7
+ data.tar.gz: f79151f21f07d8b0eda802ec0f5009c3895b9c13ce2311d52ee5f9d8cc902d33f3b954d18832c85f384789f10f0c31c94b63af6f16ea81a2b7e8583b70fd3044
@@ -1,8 +1,8 @@
1
1
  /**
2
- * jQuery Geocoding and Places Autocomplete Plugin - V 1.6.5
2
+ * jQuery Geocoding and Places Autocomplete Plugin - V 1.7.0
3
3
  *
4
- * @author Martin Kleppe <kleppe@ubilabs.net>, 2014
5
- * @author Ubilabs http://ubilabs.net, 2014
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:last .pac-item" + selected + ":first span:nth-child(2)").text();
362
- var $span2 = $(".pac-container:last .pac-item" + selected + ":first span:nth-child(3)").text();
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;
@@ -1,3 +1,3 @@
1
1
  module GeocompleteRails
2
- VERSION = "1.6.5"
2
+ VERSION = "1.7.0"
3
3
  end
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.6.5
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: 2015-07-08 00:00:00.000000000 Z
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.6
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