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 +4 -4
- data/app/chosen/controllers/main_controller.rb +1 -4
- data/app/chosen/views/main/index.html +1 -1
- data/lib/volt/chosen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4037aa0b037b7194a42982486db08b808c089ae
|
4
|
+
data.tar.gz: f8d72ff46f855ee540f4140184d214bdbfa171a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 }}
|
data/lib/volt/chosen/version.rb
CHANGED