Skip to content

Commit d4cb285

Browse files
committed
Fixed issue victorjonsson#100 and new release coming up
1 parent 2f7b3f5 commit d4cb285

12 files changed

+17
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ it calls jQ func **$.formUtils.validateInput** to validate the single input when
294294

295295
## Changelog
296296

297-
#### 2.1.40
297+
#### 2.1.47
298298
* Incorrect error-styling when using datepicker or suggestions is now fixed
299299
* Incorrect error-styling of select elements is now fixed
300300
* Deprecated function $.validationSetup is now removed, use $.validate() instead

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jQuery-Form-Validator",
3-
"version": "2.1.38",
3+
"version": "2.1.47",
44
"homepage": "http://formvalidator.net/",
55
"authors": [
66
"victorjonsson"

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.1.46
13+
* @version 2.1.47
1414
*/
1515
(function($) {
1616

form-validator/file.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.1.46
13+
* @version 2.1.47
1414
*/
1515
(function($, window) {
1616

form-validator/form-test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317

318318
$('#text-area').restrictLength($('#max-len'));
319319

320-
window.applyValidation(true);
320+
window.applyValidation(true, '#form-a', 'element');
321321
window.applyValidation(false, '#form-b', 'element');
322322
window.applyValidation(true, '#form-c', $('#error-container'));
323323

form-validator/jquery.form-validator.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @website http://formvalidator.net/
77
* @license Dual licensed under the MIT or GPL Version 2 licenses
8-
* @version 2.1.46
8+
* @version 2.1.47
99
*/
1010
(function($) {
1111

@@ -375,9 +375,6 @@
375375

376376
// using div instead of P gives better control of css display properties
377377
$form.children().eq(0).before('<div class="' + conf.errorMessageClass + ' alert alert-danger">' + messages + '</div>');
378-
if(conf.scrollToTopOnError) {
379-
$(window).scrollTop($form.offset().top - 20);
380-
}
381378
}
382379

383380
// Display error message below input field or in defined container
@@ -387,6 +384,10 @@
387384
});
388385
}
389386

387+
if(conf.scrollToTopOnError) {
388+
$(window).scrollTop($form.offset().top - 20);
389+
}
390+
390391
return false;
391392
}
392393

form-validator/jquery.form-validator.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.

form-validator/location.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.1.46
13+
* @version 2.1.47
1414
*/
1515
(function($) {
1616

form-validator/security.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @website http://formvalidator.net/#security-validators
1414
* @license Dual licensed under the MIT or GPL Version 2 licenses
15-
* @version 2.1.46
15+
* @version 2.1.47
1616
*/
1717
(function($) {
1818

form-validator/sweden.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @website http://formvalidator.net/#swedish-validators
1515
* @license Dual licensed under the MIT or GPL Version 2 licenses
16-
* @version 2.1.46
16+
* @version 2.1.47
1717
*/
1818
(function($, window) {
1919

form-validator/uk.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @website http://formvalidator.net/#uk-validators
1111
* @license Dual licensed under the MIT or GPL Version 2 licenses
12-
* @version 2.1.46
12+
* @version 2.1.47
1313
*/
1414
$.formUtils.addValidator({
1515
name : 'ukvatnumber',

formvalidator.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"validation",
88
"validator"
99
],
10-
"version" : "2.1.38",
10+
"version" : "2.1.47",
1111
"author" : {
1212
"name": "Victor Jonsson",
1313
"url": "http://victorjonsson.se",

0 commit comments

Comments
 (0)