bootstrap_autocomplete_input 0.2.3 → 0.2.4

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
- SHA1:
3
- metadata.gz: 986f990609cdbb847bb6b093f7af935249cbc362
4
- data.tar.gz: d041e9c90d0def488156accba3058662abfcac00
2
+ SHA256:
3
+ metadata.gz: 242ea7847e62fdd81347d5ff96d58b9fe74d8e0d545dffba770290aeff6fe106
4
+ data.tar.gz: 7309acd84e2d1d55dfabe1c2732536e1e7c210250c4c3bdd3dc9c270b12ced20
5
5
  SHA512:
6
- metadata.gz: 6b38305678066608854a41cab5088d6b8d7a66b1fe4a3e6802ce4c6c20a9ec7b7027cb371bbe8e1f7c3cbfee3f55996bec9d53766b832d51ba07e52b5720f5e3
7
- data.tar.gz: 30b7e09ca77566a71587a39f27a8020f204a5b0175b7f1b8d138632fae3f53991006e98c1c4acc901f80f8e8a0f73f730386896e4badfbe73d566e50c96c26a1
6
+ metadata.gz: dc36616d4f798df7821194f729897791f196e1bc1abdd5c54e2019c6e9a22d96c34053bcedc3a8836ee6900c59af66aa4cffde2071a0b54825ca42b40b847fcc
7
+ data.tar.gz: 12f2cb8a4edde4210719b5b3e40ab3961981eef3ca917576314b2456ea9dbe08914b898618614c2388d13a8a92656260d2f2d38f964c8d2ad2293320157d177e
@@ -18,7 +18,15 @@ function autocomplete_query(obj){
18
18
  var name = obj.attr('name');
19
19
 
20
20
  // load data from remote server
21
- $.getJSON( obj.attr('data-source-query'), {q: q},
21
+ var fp = obj.data("func-params");
22
+ var p = [];
23
+
24
+ if (fp){
25
+ p = window[fp]();
26
+ }
27
+ p['q'] = q;
28
+
29
+ $.getJSON( obj.attr('data-source-query'), p,
22
30
  function( data ) {
23
31
  autocomplete_data_static[name] = {"map":[], "values": []};
24
32
 
@@ -83,6 +91,7 @@ function autocomplete_query(obj){
83
91
  });// typeahead
84
92
  }
85
93
 
94
+
86
95
  function autocomplete_init(){
87
96
 
88
97
  // local array
@@ -1,3 +1,3 @@
1
1
  module BootstrapAutocompleteInput
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_autocomplete_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2019-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1581,7 +1581,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1581
1581
  version: '0'
1582
1582
  requirements: []
1583
1583
  rubyforge_project:
1584
- rubygems_version: 2.6.13
1584
+ rubygems_version: 2.7.8
1585
1585
  signing_key:
1586
1586
  specification_version: 4
1587
1587
  summary: Autocomplete/typeahead input ready to be used with Bootstrap 4 in Rails 5.