r78168 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78167‎ | r78168 | r78169 >
Date:03:34, 10 December 2010
Author:yaron
Status:deferred
Tags:
Comment:
Moved more code to be inside ready() call
Modified paths:
  • /trunk/extensions/SemanticForms/libs/SemanticForms.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/libs/SemanticForms.js
@@ -386,9 +386,6 @@
387387 }
388388 }
389389
390 -// If the form is submitted, validate everything!
391 -jQuery('#sfForm').submit( function() { return validateAll(); } );
392 -
393390 function validateAll() {
394391 var num_errors = 0;
395392
@@ -600,6 +597,9 @@
601598 fieldNum = components[2];
602599 jQuery('#' + adderID).click( addInstanceEventHandler(templateName, fieldNum) );
603600 }
 601+
 602+ // If the form is submitted, validate everything!
 603+ jQuery('#sfForm').submit( function() { return validateAll(); } );
604604 });
605605
606606 /* extending jquery functions */

Status & tagging log