Skip to content

Commit

Permalink
fix issue with JSF components which implicitly use a ':' in the id
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Refalo committed Feb 3, 2011
1 parent 25e4691 commit c2e00b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/jquery.validationEngine.js
Expand Up @@ -145,7 +145,7 @@
* Closes all error prompts on the page
*/
hidePrompt: function() {
var promptClass = "."+ $(this).attr("id") + "formError"
var promptClass = "."+ $(this).attr("id").replace(":","_") + "formError"
$(promptClass).fadeTo("fast", 0.3, function() {
$(this).remove();
});
Expand Down Expand Up @@ -861,7 +861,7 @@

// create the prompt
var prompt = $('<div>');
prompt.addClass(field.attr("id") + "formError");
prompt.addClass(field.attr("id").replace(":","_") + "formError");
prompt.addClass("formError");

switch (type) {
Expand Down Expand Up @@ -974,7 +974,7 @@
*/
_getPrompt: function(field) {

var className = "." + field.attr("id") + "formError";
var className = "." + field.attr("id").replace(":","_") + "formError";
var match = $(className)[0];
if (match)
return $(match);
Expand Down

0 comments on commit c2e00b1

Please sign in to comment.