Skip to content

Commit e48070d

Browse files
committed
Merge pull request #840 from tfevens/patch-1
Outdated Class 'formErrorOuter' used.
2 parents c7ac3ab + d3052f5 commit e48070d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

js/jquery.validationEngine.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
$(document).on("click", ".formError", function() {
2929
$(this).fadeOut(150, function() {
3030
// remove prompt once invisible
31-
$(this).closest('.formErrorOuter').remove();
31+
$(this).closest('.formError').remove();
3232
});
3333
});
3434
}
@@ -209,21 +209,20 @@
209209
} else {
210210
closingtag = methods._getClassName($(this).attr("id")) +"formError";
211211
}
212-
$('.'+closingtag).fadeTo(fadeDuration, 0.3, function() {
213-
$(this).closest('.formErrorOuter').remove();
212+
$('.'+closingtag).fadeTo(fadeDuration, 0, function() {
213+
$(this).closest('.formError').remove();
214214
});
215215
return this;
216216
},
217217
/**
218218
* Closes all error prompts on the page
219219
*/
220-
hideAll: function() {
221-
220+
hideAll: function() {
222221
var form = this;
223222
var options = form.data('jqv');
224223
var duration = options ? options.fadeDuration:300;
225-
$('.formError').fadeTo(duration, 300, function() {
226-
$(this).closest('.formErrorOuter').remove();
224+
$('.formError').fadeTo(duration, 0, function() {
225+
$(this).closest('.formError').remove();
227226
});
228227
return this;
229228
},
@@ -1697,7 +1696,7 @@
16971696
prompt.animate({
16981697
"opacity": 0
16991698
},function(){
1700-
prompt.closest('.formErrorOuter').remove();
1699+
prompt.closest('.formError').remove();
17011700
});
17021701
}, options.autoHideDelay);
17031702
}
@@ -1756,7 +1755,7 @@
17561755
var prompt = methods._getPrompt(field);
17571756
if (prompt)
17581757
prompt.fadeTo("fast", 0, function() {
1759-
prompt.closest('.formErrorOuter').remove();
1758+
prompt.closest('.formError').remove();
17601759
});
17611760
},
17621761
closePrompt: function(field) {

0 commit comments

Comments
 (0)