client_side_validations-simple_form 12.1.0 → 13.0.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6a6fb1a1aa70ad970e7f5f44d0b41fe12019c91b3b2bfdaaccd23a543ac61c7
|
4
|
+
data.tar.gz: 107d3ff909595f79a9d60ca214916862d743d9e40ed0891a309a7123b0fe0721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b83aeba8857abe85776fddaee53f4f55b02d3cf60268000f46f6b8c4e5dc4fb0c6f8449498ba1bef55c03f12d039c8d593ea6cd136c099f277be507083210632
|
7
|
+
data.tar.gz: c6200f5b9bd6c184d43f8851877a7bfd0af4fa162896619fe345c91c55bc17443a0b1858f7382a6c22e8614270477525a004dd7cade00150673d70da263d7730
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## main / unreleased
|
4
|
+
|
5
|
+
* [FEATURE] Insert validation feedback before help text [#116](https://github.com/DavyJonesLocker/client_side_validations-simple_form/pull/116) **POSSIBLE BREAKING CHANGE!**
|
6
|
+
* [ENHANCEMENT] Test against jQuery 3.6.0 by default
|
7
|
+
* [ENHANCEMENT] Update development dependencies
|
8
|
+
|
3
9
|
## 12.1.0 / 2020-02-13
|
4
10
|
|
5
11
|
* Add CSV 18.0 compatibility
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Client Side Validations Simple Form JS (Bootstrap 4) - v0.
|
2
|
+
* Client Side Validations Simple Form JS (Bootstrap 4) - v0.2.0 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
|
3
3
|
* Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -32,11 +32,17 @@
|
|
32
32
|
var errorElement = wrapperElement.find(settings.error_tag + '.invalid-feedback');
|
33
33
|
|
34
34
|
if (!errorElement.length) {
|
35
|
+
var formTextElement = wrapperElement.find('.form-text');
|
35
36
|
errorElement = $__default['default']('<' + settings.error_tag + '>', {
|
36
37
|
"class": 'invalid-feedback',
|
37
38
|
text: message
|
38
39
|
});
|
39
|
-
|
40
|
+
|
41
|
+
if (formTextElement.length) {
|
42
|
+
formTextElement.before(errorElement);
|
43
|
+
} else {
|
44
|
+
wrapperElement.append(errorElement);
|
45
|
+
}
|
40
46
|
}
|
41
47
|
|
42
48
|
wrapperElement.addClass(settings.wrapper_error_class);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Client Side Validations Simple Form JS (Default) - v0.
|
2
|
+
* Client Side Validations Simple Form JS (Default) - v0.2.0 (https://github.com/DavyJonesLocker/client_side_validations-simple_form)
|
3
3
|
* Copyright (c) 2021 Geremia Taglialatela, Brian Cardarella
|
4
4
|
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations-simple_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 13.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geremia Taglialatela
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: client_side_validations
|
@@ -51,14 +51,14 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.4'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.4'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: byebug
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,14 +79,14 @@ dependencies:
|
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.21.0
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.21.0
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: m
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,42 +149,42 @@ dependencies:
|
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '1.
|
152
|
+
version: '1.12'
|
153
153
|
type: :development
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '1.
|
159
|
+
version: '1.12'
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: rubocop-minitest
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.11.0
|
167
167
|
type: :development
|
168
168
|
prerelease: false
|
169
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.11.0
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: rubocop-performance
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '1.
|
180
|
+
version: '1.10'
|
181
181
|
type: :development
|
182
182
|
prerelease: false
|
183
183
|
version_requirements: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '1.
|
187
|
+
version: '1.10'
|
188
188
|
- !ruby/object:Gem::Dependency
|
189
189
|
name: rubocop-rails
|
190
190
|
requirement: !ruby/object:Gem::Requirement
|