Skip to content

Commit cc5baef

Browse files
Cedric DugasCedric Dugas
authored andcommitted
fix #451
1 parent c54dbee commit cc5baef

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

js/jquery.validationEngine.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,10 +1467,13 @@
14671467
// When the form errors are returned, the engine see 2 bubbles, but those are ebing closed by the engine at the same time
14681468
// Because no error was found befor submitting
14691469
if(ajaxform) prompt = false;
1470-
if (prompt)
1471-
methods._updatePrompt(field, prompt, promptText, type, ajaxed, options);
1472-
else
1473-
methods._buildPrompt(field, promptText, type, ajaxed, options);
1470+
// Check that there is indded text
1471+
if($.trim(promptText)){
1472+
if (prompt)
1473+
methods._updatePrompt(field, prompt, promptText, type, ajaxed, options);
1474+
else
1475+
methods._buildPrompt(field, promptText, type, ajaxed, options);
1476+
}
14741477
},
14751478
/**
14761479
* Builds and shades a prompt for the given field.

0 commit comments

Comments
 (0)