File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1194
1194
}
1195
1195
} ) ;
1196
1196
1197
- return rule . alertTextLoad ;
1197
+ if ( options . asyncInProgress [ field . attr ( "id" ) ] ) {
1198
+ return rule . alertTextLoad ; //if async function is still in progress, show the loading prompt
1199
+ }
1200
+ else if ( options . ajaxValidCache [ field . attr ( "id" ) ] === false ) { //if the callback returned quickly and validation failed
1201
+ 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)
1202
+ }
1198
1203
}
1199
1204
else if ( options . ajaxValidCache [ field . attr ( "id" ) ] === false ) { //if validation previously failed, but did not change
1200
1205
return { status : '_error_no_prompt' } ; //force our caller to fail and bail (don't change the prompt)
You can’t perform that action at this time.
0 commit comments