effective_form_inputs 1.1.14 → 1.1.15

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: 04a76eab3d3b21003e8a7fe142d2c77f946c87fc
4
- data.tar.gz: 8cce52c396eb418c99c305bb2f00f623245db22e
3
+ metadata.gz: 937725fe7bfe1c08ac559edcacdb52ea6ee2a37c
4
+ data.tar.gz: 06bf13049aeec498038a5c306bbabc0b8f498bae
5
5
  SHA512:
6
- metadata.gz: 8733f1f2dc29e2b9ff4f12d65d35d3e1c92d1360471871e8b856d539484df5b2155312653b7d6588fd5086ec69774ec94350d2565c56939dbc3e7c8bf2fdfaac
7
- data.tar.gz: a71b7a3ba00d0a06a0bab916c5c7598d4dca19bac66b00f7d35d1034eb5b07c07709b553f943117c0ae80a2c88cd795b993543fe2243e68c883b9e8cc90482cc
6
+ metadata.gz: 5cde7d118be3449afde95fa63650d181963e88d2cc6e5bbead22773d609326b457716b231234761fb82aaf98d4376910560e3e1e29ceb1a26c5591084e423d50
7
+ data.tar.gz: 4514ab3d6a80d8bb9d2a55d54bc62ad65ccc4c7d40e19a3e61e0e7c2d7c617b8d49fcb75f59a0990efa30f51992f02799859ecbf8c4311f9212e298ea886f43a
@@ -46,6 +46,10 @@ $(document).on 'change', "select.effective_select.polymorphic", (event) ->
46
46
 
47
47
  # Fixes https://github.com/select2/select2/issues/3106
48
48
  $(document).on 'select2:select', 'select', (event) ->
49
- $el = $(event.params.data.element).detach()
50
- $(this).append($el).trigger('change')
49
+ $el = $(event.params.data.element)
50
+
51
+ if $el.closest('select').hasClass('tags-input')
52
+ $(this).append($el.detach()).trigger('change')
53
+
54
+ true
51
55
 
@@ -145,6 +145,7 @@ module Inputs
145
145
  html_options[:class] << 'polymorphic' if options[:polymorphic]
146
146
  html_options[:class] << 'grouped' if options[:grouped]
147
147
  html_options[:class] << 'hide-disabled' if options[:hide_disabled]
148
+ html_options[:class] << 'tags-input' if options[:tags]
148
149
  end
149
150
  end
150
151
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '1.1.14'.freeze
2
+ VERSION = '1.1.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.14
4
+ version: 1.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.5.1
145
+ rubygems_version: 2.5.2
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Collection of Form Inputs