c80_modal_forms 0.1.0 → 0.1.0.1

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: f779aa2c288cd32a6ca9c1a041cc3116624fbf78
4
- data.tar.gz: c5b6820b1ff4e2d9f0a16205e35add3c4e6a2412
3
+ metadata.gz: 62d8326601415c52c18905ecb1a96ec0ca864b5d
4
+ data.tar.gz: b1f3189a64e2534ed4c5b2e93252abac8b640070
5
5
  SHA512:
6
- metadata.gz: 3ff75a998f472dec51560b529fafdfb6f64a759be204de0549ebc7a819737e57c0f47df92584568bb05f4da6ec2f824ac2a9178853fda64576587728c3000197
7
- data.tar.gz: e1a4a9c607536bfa2633ae7ab9c2157a52519f0b31b069d92f8b0af211be2ace5f4c8a10b4013563e4fc2137638d0ff93655388dc40de88dfc5fbdece9b8fdac
6
+ metadata.gz: c75149bf3df2772789643bf19a89a36a07d7ba1eceba0f4116b02b2c64c3acec8dac98287f3da1c2c4d809915d3dd47e4a6d4fd0bd947de6da98bcca5b2ef1ba
7
+ data.tar.gz: 83e0bc0e3c23351bbaff38634bf6f54bcb7aabe0970916e804534e592b6ae7f7fd7a000a1c7f8477bf0c2695296978a62caf09594d4fc8619791a29c9d7cfad9
@@ -28,11 +28,17 @@
28
28
 
29
29
  // show error messages in input form-group help-block
30
30
  $.each(errors, function(field, messages){
31
+
31
32
  var $input = $('input[name="' + model + '[' + field + ']"]');
32
33
  if ($input.length == 0) {
33
34
  $input = $('textarea[name="' + model + '[' + field + ']"]');
34
35
  }
35
- $input.closest('.form-group').addClass('has-error').find('.help-block').html( messages.join(' ') );
36
+
37
+ $input.closest('.form-group')
38
+ .addClass('has-error')
39
+ .find('.help-block')
40
+ //.html( messages.join(' ') );
41
+ .html( messages[0] );
36
42
  });
37
43
 
38
44
  };
@@ -1,3 +1,3 @@
1
1
  module C80ModalForms
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c80_modal_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - C80609A
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-21 00:00:00.000000000 Z
11
+ date: 2016-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler