Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -386,9 +386,6 @@ |
387 | 387 | } |
388 | 388 | } |
389 | 389 | |
390 | | -// If the form is submitted, validate everything! |
391 | | -jQuery('#sfForm').submit( function() { return validateAll(); } ); |
392 | | - |
393 | 390 | function validateAll() { |
394 | 391 | var num_errors = 0; |
395 | 392 | |
— | — | @@ -600,6 +597,9 @@ |
601 | 598 | fieldNum = components[2]; |
602 | 599 | jQuery('#' + adderID).click( addInstanceEventHandler(templateName, fieldNum) ); |
603 | 600 | } |
| 601 | + |
| 602 | + // If the form is submitted, validate everything! |
| 603 | + jQuery('#sfForm').submit( function() { return validateAll(); } ); |
604 | 604 | }); |
605 | 605 | |
606 | 606 | /* extending jquery functions */ |