[Movecommons-commits] r494 - in trunk: src wp-theme

Mario Gallegos mgallegos at ourproject.org
Wed Jun 6 00:17:23 CEST 2012


Author: mgallegos
Date: 2012-06-06 00:17:22 +0200 (Wed, 06 Jun 2012)
New Revision: 494

Modified:
   trunk/src/mc-dia-form2.js
   trunk/wp-theme/mc2-form.php
Log:


Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2012-06-05 22:11:55 UTC (rev 493)
+++ trunk/src/mc-dia-form2.js	2012-06-05 22:17:22 UTC (rev 494)
@@ -592,8 +592,18 @@
 	        $j('#').val($j('#url').val());*/
         } else return false;
     });
+    
+    $j('#non-profit-website').click(function(){
+        if($j('#non-profit-website').val()==''){ 
+        	$j('#non-profit-website').val($j('#url').val());
+        	$j('#non-profit-website').trigger('keypress');
+        }
+    	
+    });
+    
 
 
+
     $j('#submit_second').click(function(){
         //remove classes
         /*$j('#second_step input').removeClass('error').removeClass('valid');

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2012-06-05 22:11:55 UTC (rev 493)
+++ trunk/wp-theme/mc2-form.php	2012-06-05 22:17:22 UTC (rev 494)
@@ -105,7 +105,7 @@
 						    	<?php _e("We are registered as Non-profit", "mc"); ?>
 					    	</label>
 					    	<label id="infield-non-profit-website" for="non-profit-website" style="position: absolute;display: none;margin: 8px 5px 5px 50px;padding: 0;font-size: 14px;"><?php _e("Check this website: http://example.com", "mc"); ?></label>
-							<input type="text" name="non-profit-website" onclick="if($j('#non-profit-website').val()==''){ $j('#non-profit-website').val($j('#url').val());$j('#non-profit-website').keypress()}" value="" id="non-profit-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
+							<input type="text" name="non-profit-website"  value="" id="non-profit-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 					    	<label class="optional-labels-fields">					     
 						    	<input type="checkbox" name="open-accounting" value="S" id="open-accounting" disabled="disabled"/>
 						    	<?php _e("We have Open-accounting", "mc"); ?>




More information about the Movecommons-commits mailing list