cutlass_js_rails 0.3.4 → 0.3.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a58eb429c2b7b35f198d62897987f9d41a74afe1
|
4
|
+
data.tar.gz: dc448f83f5d622296a118c6c06df07fb1ea8d17d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5e0af76f60d9f480a26c4e6ba6295f3960cd335fd83552f4cc5de097082c776b3a01748510843e368c2888f49a6d841dc5a0dc45013c534b0e76eb1bb43a7ee
|
7
|
+
data.tar.gz: bb2c8fbd0b7c0d9340a2ba40d0f325c5bf8b90e2879aef51fd6aa7375fdabb231af78eba76c0c6c155ff3ed4c27a3a743144c45697180cc10c88ff014092da6c
|
@@ -34,6 +34,9 @@ Cutlass.addError = function($input){
|
|
34
34
|
$input.before($error)
|
35
35
|
}
|
36
36
|
}
|
37
|
+
Cutlass.removeError = function($input){
|
38
|
+
$input.siblings('.Cutlass-error').remove();
|
39
|
+
}
|
37
40
|
Cutlass.addWrapperClasses = function($input){
|
38
41
|
var classes = $input.data('wrapper-classes');
|
39
42
|
if(classes){
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% code = local_assigns.fetch(:code) %>
|
2
2
|
<% value = model.loot_get(code) %>
|
3
3
|
<% options.map! do |option| %>
|
4
|
-
<% OpenStruct.new(
|
4
|
+
<% OpenStruct.new(label: option[0], value: option[1]) %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<div class="Cutlass-input-radio" data-label="<%= label %>" data-error=<%= model.errors[code][0] %>>
|