auto_select2 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b4ac04f3c93de72263e824327bccaf90ec03172
4
- data.tar.gz: bc8b0c4196822d7e9f7f5bae0dc5be4d869c58f1
3
+ metadata.gz: 9cac4f372dddda9c28c83ab77010035cb9914a32
4
+ data.tar.gz: bf90d72966d41a1656e85673a4238dd9dcc8c21b
5
5
  SHA512:
6
- metadata.gz: 5786830be1b7367cde2be866405f7ffbc189a97b9f494442c6cf86618335e474d42c124f76479b68a3806dd7923b73088bb307a0164858ac5cd7b89ec6551b45
7
- data.tar.gz: 351f577744f6d32b0df1f3822f069f78857537b4e7397b721379e9989a85332e14add3364cc06990e6c3ef85b84344a620a47bfbcc5e8219ebba5ef82dda3c2c
6
+ metadata.gz: 6808a10cf5bc22bbf2bb1fc911efe7105e00fdd46b1f21053b33e659cd8b98f923bdb4f3537dca765bf67712dd086f3b66b9ba1d995439f12c2c3ca724da40e2
7
+ data.tar.gz: e1f4fdc6f1bb96336110370d8811102a6d54e9a64dc293773067130332a5ec7bcf019b52a4d90080e006818342e95e445546ac268dfcad0c370f23ee8c1766dc
@@ -1,3 +1,3 @@
1
1
  module AutoSelect2
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.0'
3
3
  end
@@ -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("s2options")
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.6.1
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: 2017-05-30 00:00:00.000000000 Z
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.8
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.