volt-chosen 0.1.2 → 0.1.3

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: 06d35b13d5619054f8dbf8af14955776265e4768
4
- data.tar.gz: d1a4220f48199238cc2aed9d425e0c5050be4b2e
3
+ metadata.gz: c4037aa0b037b7194a42982486db08b808c089ae
4
+ data.tar.gz: f8d72ff46f855ee540f4140184d214bdbfa171a2
5
5
  SHA512:
6
- metadata.gz: f0f6dc7bb6e3cab817103e557f672630c110ae02a84ec9c086e2e844bdd269ff7a9fd792089b7a1cee3937319b509749b4f14f951976baf6efecf36a355ef3fe
7
- data.tar.gz: 9178bd07bc7828f74a55e7e5d4792271f54ae64e6aad7b1130081d54cc01763ceba0a3949a79e4d74d118477ce5f03d805e182bae8a0b4223c8a03c91cd71175
6
+ metadata.gz: 4ecb5ef24a06d916a464b4565ef3285e9401cc80828fd4d9ccfa7f6e6af9180fd2bc1640d4ca03a8a7cc37696a6c4cac2898e0abe7516398ad6cfa47e65c4f7c
7
+ data.tar.gz: 7181e7bbc3e18490a7b40c62bc951dff8d76769600fdf4e0dbbf28f11a193cedda52d5513cc0d2d53bb771fd838bbb96a5a88b29d266cd8860faa3d26e567e11
@@ -7,8 +7,6 @@ module Chosen
7
7
  class MainController < Volt::ModelController
8
8
  before_action :setup_field
9
9
 
10
- reactive_accessor :options
11
-
12
10
  def setup_field
13
11
  unless attrs.value_last_method
14
12
  field_type = self.class.to_s.underscore.gsub(/[_]Controller$/, '')
@@ -35,7 +33,6 @@ module Chosen
35
33
  e.stopPropagation();
36
34
  $(".my_select_box").trigger('chosen:change', params);
37
35
  });`
38
-
39
36
  end
40
37
 
41
38
  def before_index_remove
@@ -107,7 +104,7 @@ module Chosen
107
104
  end
108
105
 
109
106
  def selected(value)
110
- if attrs.multiple
107
+ if attrs.multiple == true || attrs.multiple == 'true'
111
108
  if attrs.value.include?(value)
112
109
  res = true
113
110
  else
@@ -1,5 +1,5 @@
1
1
  <:Body>
2
- <div e-="log_result" class="form-group {{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback">
2
+ <div class="form-group {{ if errors }}has-error{{ elsif marked }}has-success{{ end }} has-feedback">
3
3
  {{ if label }}
4
4
  <label class="control-label">{{ label }}</label>
5
5
  {{ end }}
@@ -1,5 +1,5 @@
1
1
  module Volt
2
2
  module Chosen
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-chosen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale