no longer deactivate submit buttons if validation fails (3444948)

This commit is contained in:
Roland Gruber 2011-12-01 18:55:54 +00:00
parent 7531281868
commit 6f66af2b06
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@
form.find("[class*=validate][class*=datepicker]").bind(options.validationEventTrigger,{"delay": 300}, methods._onFieldEvent); form.find("[class*=validate][class*=datepicker]").bind(options.validationEventTrigger,{"delay": 300}, methods._onFieldEvent);
// bind form.submit // bind form.submit
form.bind("submit", methods._onSubmitEvent); //form.bind("submit", methods._onSubmitEvent);
} else if (options.bindMethod == "live") { } else if (options.bindMethod == "live") {
// bind fields with LIVE (for persistant state) // bind fields with LIVE (for persistant state)
form.find("[class*=validate]").not("[type=checkbox]").not(".datepicker").live(options.validationEventTrigger, methods._onFieldEvent); form.find("[class*=validate]").not("[type=checkbox]").not(".datepicker").live(options.validationEventTrigger, methods._onFieldEvent);
@ -69,7 +69,7 @@
form.find("[class*=validate][class*=datepicker]").live(options.validationEventTrigger,{"delay": 300}, methods._onFieldEvent); form.find("[class*=validate][class*=datepicker]").live(options.validationEventTrigger,{"delay": 300}, methods._onFieldEvent);
// bind form.submit // bind form.submit
form.live("submit", methods._onSubmitEvent); //form.live("submit", methods._onSubmitEvent);
} }
options.binded = true; options.binded = true;