My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 267: Value of custom validation is not being used consistently in validation framework
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  sidda...@gmail.com
Closed:  Jun 2010


 
Project Member Reported by sidda...@gmail.com, Jun 12, 2010
addCustomWorksheetValidation(new WorksheetValidation("myCustomValidation", "validateLastName").setErrorMessage("foo is not valid"));

produces the following javascript which is wrong and gives javascript error.
jQuery.validator.addMethod('myCustomValidation', myCustomValidation);

The correct javascript should be
jQuery.validator.addMethod('myCustomValidation', validateLastName);


WORKAROUND:
Keep the name of validation same as its value. e.g.

addCustomWorksheetValidation(new WorksheetValidation("validateLastName", "validateLastName").setErrorMessage("foo is not valid"));
Jun 21, 2010
Project Member #2 sidda...@gmail.com
Fixed in revision 2509.

Powered by Google Project Hosting