[Movecommons-commits] r500 - trunk/src

Mario Gallegos mgallegos at ourproject.org
Wed Jun 6 00:50:16 CEST 2012


Author: mgallegos
Date: 2012-06-06 00:50:16 +0200 (Wed, 06 Jun 2012)
New Revision: 500

Modified:
   trunk/src/mc-dia-form2.js
Log:


Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2012-06-05 22:36:09 UTC (rev 499)
+++ trunk/src/mc-dia-form2.js	2012-06-05 22:50:16 UTC (rev 500)
@@ -565,7 +565,7 @@
         var error = 0;
         fields.each(function(){
             var value = $j(this).val();
-            if( value.length<4 || value==field_values[$j(this).attr('id')] ) {
+            if( $j.trim(value)=="" || value==field_values[$j(this).attr('id')] ) {
                 $j(this).addClass('error');
                 $j(this).effect("shake", { times:3 }, 50);
                 




More information about the Movecommons-commits mailing list