weaver 0.3.5 → 0.3.6
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 +4 -4
- data/lib/weaver/version.rb +1 -1
- data/lib/weaver.rb +7 -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: 43bba74e32188757bb01c7b24490e86ae202b3dc
|
|
4
|
+
data.tar.gz: 29dbd16d9a58d5180776862817d17f4f303de689
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 645ac320a9d20f7fbc2ab7dbcb44f7c7a8029a4e17dbf43402244af8525acbe643b08119d9ab8d5fcb1ef2b92f0443a0808d237b866466069b67d52abc00c01b
|
|
7
|
+
data.tar.gz: 363425e3d67ca51740d895d3026a18e8f35c70939a06171bde8d46d61158da74e3bc469e4f154d4a806080d633334a1ad7e8a5bd5ec7b65e0c5ed1093e4fda68
|
data/lib/weaver/version.rb
CHANGED
data/lib/weaver.rb
CHANGED
|
@@ -1080,6 +1080,7 @@ $("##{@id}").keyup(function()
|
|
|
1080
1080
|
input_options[:rows] = options[:rows]
|
|
1081
1081
|
input_options[:class] = "form-control"
|
|
1082
1082
|
input_options[:value] = options[:value]
|
|
1083
|
+
input_options[:style] = options[:style]
|
|
1083
1084
|
|
|
1084
1085
|
input_options[:autocomplete] = options[:autocomplete] || "on"
|
|
1085
1086
|
input_options[:autocorrect] = options[:autocorrect] || "on"
|
|
@@ -1183,8 +1184,13 @@ $("##{@id}").keyup(function()
|
|
|
1183
1184
|
div :class => "input-group", style: "width: 100%" do
|
|
1184
1185
|
|
|
1185
1186
|
method_missing :select, form_options do
|
|
1187
|
+
|
|
1186
1188
|
choice_array.each do |choice|
|
|
1187
|
-
|
|
1189
|
+
if options[:value] == choice
|
|
1190
|
+
option choice, selected: selected
|
|
1191
|
+
else
|
|
1192
|
+
option choice
|
|
1193
|
+
end
|
|
1188
1194
|
end
|
|
1189
1195
|
end
|
|
1190
1196
|
end
|