auto_select2 0.6.1 → 0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cac4f372dddda9c28c83ab77010035cb9914a32
|
4
|
+
data.tar.gz: bf90d72966d41a1656e85673a4238dd9dcc8c21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6808a10cf5bc22bbf2bb1fc911efe7105e00fdd46b1f21053b33e659cd8b98f923bdb4f3537dca765bf67712dd086f3b66b9ba1d995439f12c2c3ca724da40e2
|
7
|
+
data.tar.gz: e1f4fdc6f1bb96336110370d8811102a6d54e9a64dc293773067130332a5ec7bcf019b52a4d90080e006818342e95e445546ac268dfcad0c370f23ee8c1766dc
|
data/lib/auto_select2/version.rb
CHANGED
@@ -2,7 +2,7 @@ jQuery ($) ->
|
|
2
2
|
# Tune input fields before submitting form, change csv values into input elements with array names
|
3
3
|
$(document).on 'submit', 'form', ->
|
4
4
|
$form = $(@)
|
5
|
-
$('input.auto-ajax-select2.multiple:enabled').each ->
|
5
|
+
$form.find('input.auto-ajax-select2.multiple:enabled').each ->
|
6
6
|
$multi = $(@)
|
7
7
|
data = $multi.select2('data')
|
8
8
|
name = $multi.attr('name')
|
@@ -3,7 +3,7 @@ jQuery ($) ->
|
|
3
3
|
$("select.auto-static-select2").each ->
|
4
4
|
$input = $(this)
|
5
5
|
return if $input.data('select2')
|
6
|
-
s2UserOptions = $input.data("
|
6
|
+
s2UserOptions = $input.data("s2-options")
|
7
7
|
|
8
8
|
s2DefaultOptions =
|
9
9
|
allowClear: true
|
@@ -36,4 +36,4 @@ jQuery ($) ->
|
|
36
36
|
$document.on 'cocoon:after-insert', ->
|
37
37
|
initAutoStaticSelect2()
|
38
38
|
return
|
39
|
-
return
|
39
|
+
return
|
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.
|
4
|
+
version: 0.7.0
|
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: 2018-02-09 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.6.
|
153
|
+
rubygems_version: 2.6.14
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Base methods for wrapping a Select2 and easy initialize it.
|