Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit b2eb93d

Browse files
A few minor tweaks to spacing and scrolling
1 parent 7ce5dcd commit b2eb93d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ whole or individual fields:
2424
When used on a form, it prescribes a global default message for all fields
2525
that are invalid when empty; when used on a field, it provides a field-specific
2626
error message when empty.
27-
- The `data-validaiton-error-invalid`` attribute
27+
- The `data-validaiton-error-invalid` attribute
2828
When used on a form, it prescribes a global default message for all fields that
2929
are invalid; when used on a field, it provides a field-specific error message when invalid.

min/jquery.easy-validation.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.easy-validation.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
INVALID = ERROR + '-invalid',
3737
DEFAULT_EMPTY_MSG = 'This field cannot be left blank',
3838
DEFAULT_INVALID_MSG = 'This field is not properly formatted',
39-
container = 'form > ol > li, .form-item',
39+
container = 'form > ol > li, fieldset > ol > li, .form-item',
4040

4141
// borrowed from Modernizr
4242
html5_validation = (function( props ){
@@ -169,6 +169,7 @@
169169
{
170170
if ( html5_validation )
171171
{
172+
// console.log('html 5');
172173
// custom error messaging
173174
$( 'input,select,textarea' )
174175
// handle invalidity
@@ -194,8 +195,6 @@
194195

195196
this.setCustomValidity( msg );
196197

197-
window.scrollTo( $this.offset().top );
198-
199198
})
200199
// reset
201200
.on( 'change', function(){

0 commit comments

Comments
 (0)