Skip to content

Commit 57095e2

Browse files
committed
Hide Prompt Fix
For situations where validationEngineContainer is used instead of the form, hiding prompts was not working. I reviewed the "hide" source code and it looked like the logic is faulty (using this instead of the form variable). Making that change fixes the issue.
1 parent a836ce2 commit 57095e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/jquery.validationEngine.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@
212212
var fadeDuration = (options && options.fadeDuration) ? options.fadeDuration : 0.3;
213213
var closingtag;
214214

215-
if($(this).is("form") || $(this).hasClass("validationEngineContainer")) {
216-
closingtag = "parentForm"+methods._getClassName($(this).attr("id"));
215+
if(form.is("form") || form.hasClass("validationEngineContainer")) {
216+
closingtag = "parentForm"+methods._getClassName($(form).attr("id"));
217217
} else {
218-
closingtag = methods._getClassName($(this).attr("id")) +"formError";
218+
closingtag = methods._getClassName($(form).attr("id")) +"formError";
219219
}
220220
$('.'+closingtag).fadeTo(fadeDuration, 0, function() {
221221
$(this).closest('.formError').remove();

0 commit comments

Comments
 (0)