auto_select2 0.5.6 → 0.5.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5d8050b98475d9f40dc0fcdb44095529f9e5a29
|
4
|
+
data.tar.gz: cf477c641e81a173d9523a71f7c8339f927814cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e9362048eef7c3f7ec86a2cd9a27cb7917c1e1f6f9fed0f8fd230a1e2218cc254a51e8109cb2b301b2cf02bfef55040c6387ca385785633b19986174ebaf8a
|
7
|
+
data.tar.gz: 997d97b0e89bc2fbb6ad18cd727ce40d3b8d0d275e50c385753cf0ab7491b41345651f361483a4c1858adb97c8f47d75b73d8da66454d05735d7cd8c71fc5ff8
|
data/lib/auto_select2/version.rb
CHANGED
@@ -13,9 +13,17 @@ jQuery ($) ->
|
|
13
13
|
s2FullOptions = $.extend({}, s2DefaultOptions)
|
14
14
|
else
|
15
15
|
s2FullOptions = $.extend({}, s2DefaultOptions, s2UserOptions)
|
16
|
+
customFormatSelection = s2UserOptions.formatSelection
|
17
|
+
customFormatResult = s2UserOptions.formatResult
|
16
18
|
|
17
|
-
|
19
|
+
if customFormatSelection isnt `undefined` && (window[customFormatSelection] isnt `undefined`)
|
20
|
+
formatSelectionFunc = window[customFormatSelection]
|
21
|
+
if (customFormatResult isnt `undefined`) && (window[customFormatResult] isnt `undefined`)
|
22
|
+
formatResultFunc = window[customFormatResult]
|
23
|
+
|
24
|
+
s2FullOptions = $.extend({}, s2FullOptions, {formatSelection: formatSelectionFunc, formatResult: formatResultFunc})
|
18
25
|
|
26
|
+
$input.select2(s2FullOptions)
|
19
27
|
return
|
20
28
|
return
|
21
29
|
initAutoStaticSelect2()
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_select2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Lisichkin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.6.8
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Base methods for wrapping a Select2 and easy initialize it.
|