We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a1ec40 commit ce30049Copy full SHA for ce30049
1 file changed
js/jquery.validationEngine.js
@@ -1148,7 +1148,12 @@
1148
}
1149
});
1150
1151
- return rule.alertTextLoad;
+ if (options.asyncInProgress[field.attr("id")]) {
1152
+ return rule.alertTextLoad; //if async function is still in progress, show the loading prompt
1153
+ }
1154
+ else if (options.ajaxValidCache[field.attr("id")] === false) { //if the callback returned quickly and validation failed
1155
+ return {status: '_error_no_prompt'}; //force our caller to fail and bail (don't change the prompt, since that was already done by the callback)
1156
1157
1158
else if (options.ajaxValidCache[field.attr("id")] === false) { //if validation previously failed, but did not change
1159
return {status: '_error_no_prompt'}; //force our caller to fail and bail (don't change the prompt)
0 commit comments