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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 242ea7847e62fdd81347d5ff96d58b9fe74d8e0d545dffba770290aeff6fe106
|
4
|
+
data.tar.gz: 7309acd84e2d1d55dfabe1c2732536e1e7c210250c4c3bdd3dc9c270b12ced20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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:
|
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.
|
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.
|