Skip to content

Commit e9d2a9e

Browse files
committed
version bump...
1 parent bd97087 commit e9d2a9e

36 files changed

+49
-46
lines changed

form-validator/brazil.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/date.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/file.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/html5.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/jquery.form-validator.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** File generated by Grunt -- do not modify
1818
* JQUERY-FORM-VALIDATOR
1919
*
20-
* @version 2.3.66
20+
* @version 2.3.68
2121
* @website http://formvalidator.net/
2222
* @author Victor Jonsson, http://victorjonsson.se
2323
* @license MIT
@@ -29,6 +29,7 @@
2929
var disableFormSubmit = function () {
3030
return false;
3131
},
32+
lastFormEvent = null,
3233
HaltManager = {
3334
numHalted: 0,
3435
haltValidation: function($form) {
@@ -72,7 +73,8 @@
7273
if (eventContext === 'keyup') {
7374
return null;
7475
} else if (this.isRunning) {
75-
if (!this.haltedFormValidation && eventContext === 'submit') {
76+
lastFormEvent = eventContext;
77+
if (!this.haltedFormValidation) {
7678
HaltManager.haltValidation();
7779
this.haltedFormValidation = true;
7880
}
@@ -81,10 +83,9 @@
8183
//this.$input.one('keyup change paste', this.reset.bind(this));
8284
return this.result;
8385
} else {
84-
if (eventContext === 'submit') {
85-
HaltManager.haltValidation(this.$form);
86-
this.haltedFormValidation = true;
87-
}
86+
lastFormEvent = eventContext;
87+
HaltManager.haltValidation(this.$form);
88+
this.haltedFormValidation = true;
8889
this.isRunning = true;
8990
this.$input
9091
.attr('disabled', 'disabled')
@@ -109,9 +110,11 @@
109110
this.$form.removeClass('async-validation');
110111
if (this.haltedFormValidation) {
111112
HaltManager.unHaltValidation(this.$form);
112-
this.$form.trigger('submit');
113-
} else {
114-
this.$input.trigger('validation.revalidate');
113+
if (lastFormEvent === 'submit') {
114+
this.$form.trigger('submit');
115+
} else {
116+
this.$input.trigger('validation.revalidate');
117+
}
115118
}
116119
};
117120

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/jsconf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** File generated by Grunt -- do not modify
22
* JQUERY-FORM-VALIDATOR
33
*
4-
* @version 2.3.66
4+
* @version 2.3.68
55
* @website http://formvalidator.net/
66
* @author Victor Jonsson, http://victorjonsson.se
77
* @license MIT

form-validator/lang/ca.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/cs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/lang/da.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)