select2-rails 3.5.6 → 3.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/select2.js +3 -3
- data/app/assets/stylesheets/select2.css.erb +1 -1
- data/lib/select2-rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjY4MjZjYThmNDQ2ZmMyNzA1YWY5NzJlNWY0MmQ1N2VmODEzODYyZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjFmOTI2ZTlhNzBhYzI4OTEzNjQzMjg2YzdiZTliZDUxYjE5MDdhZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2ViNDEyYzRiMzNiNzdkM2M0MTViYmJiMzdkZjgyYWFlMDY2NWIzMTRjNWY1
|
10
|
+
NTZhZTAzOWE1ZmJkNTNmYzg0Yzg0NWE2ZTgyMTJmYTAwMzk5MmQxYTZhNzFh
|
11
|
+
ZDc0MzE2YWJiZTllNzY2MzMxN2I1YmQzMGE5ODFjNThjMjQzZmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGI5OWQyMmJjNDMzZDI0ZTA1YjRmMDJiMTFmY2NlNzc0YjU4MzBmZTEwNTkx
|
14
|
+
MTdjNzY2M2E3MGI5ODlkMmFlZjgyZTQyN2ExMTkwYjdjYjhlNzYwYzU0ZDE3
|
15
|
+
ODg3ODIzODBkMjRkYTRkMGFiN2M0ZjJlOGZkZWY5MmZlYTI4ZDM=
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
Copyright 2012 Igor Vaynberg
|
3
3
|
|
4
|
-
Version: 3.4.
|
4
|
+
Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
5
5
|
|
6
6
|
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
|
7
7
|
General Public License version 2 (the "GPL License"). You may choose either license to govern your
|
@@ -524,9 +524,9 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
524
524
|
var isFunc = $.isFunction(data);
|
525
525
|
return function (query) {
|
526
526
|
var t = query.term, filtered = {results: []};
|
527
|
-
var result =
|
527
|
+
var result = isFunc ? data(query) : data;
|
528
528
|
if ($.isArray(result)) {
|
529
|
-
$(
|
529
|
+
$(result).each(function () {
|
530
530
|
var isObject = this.text !== undefined,
|
531
531
|
text = isObject ? this.text : this;
|
532
532
|
if (t === "" || query.matcher(t, text)) {
|