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: acfe29266d4e7976a2fe1200ecf283afda6991b1
4
- data.tar.gz: 137f99147fa635a1a1b7f501fe04438d639e6daf
3
+ metadata.gz: a58eb429c2b7b35f198d62897987f9d41a74afe1
4
+ data.tar.gz: dc448f83f5d622296a118c6c06df07fb1ea8d17d
5
5
  SHA512:
6
- metadata.gz: 339461af76dff3c2bd64fb6bd48474af2d8e99f444ce8e250771789504546501449ae90ced10b05c79b3ee2da4408ffe3994e90b041e6a9790ea3b70cf13bfd7
7
- data.tar.gz: 13fb00c66eb44aee946f84cd60a59f73fabe44910cbffa04a51e54bf6309a443ceb462167a7a85d6832c638b25274d1970fdc9159e6cc35e1e980a27b214accf
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(value: option[0], label: option[1]) %>
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] %>>
@@ -1,3 +1,3 @@
1
1
  module CutlassJsRails
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutlass_js_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - chardos