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

Mario Gallegos mgallegos at ourproject.org
Mon May 27 07:22:36 CEST 2013


Author: mgallegos
Date: 2013-05-27 07:22:35 +0200 (Mon, 27 May 2013)
New Revision: 626

Modified:
   trunk/src/mc-dia-form2.js
   trunk/wp-theme/mc2-form.php
Log:
FEEDBACK - Enhancement #529: Include How To Help page question in Nonprofit

Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2013-05-27 04:32:23 UTC (rev 625)
+++ trunk/src/mc-dia-form2.js	2013-05-27 05:22:35 UTC (rev 626)
@@ -957,6 +957,17 @@
 	    $j('#infield-donation-website').hide();
 	  }  
 	});
+
+	$j("#how-to-help").click(function(){		
+		  if($j("#how-to-help").attr("checked")){
+		    $j('#how-to-help-website').show();
+		    $j('#infield-how-to-help-website').show();
+		  }  	
+		  else{
+		    $j('#how-to-help-website').hide();
+		    $j('#infield-how-to-help-website').hide();
+		  }  
+	});
 	
 	$j("#terms-of-use").click(function(){		
 	  if($j("#terms-of-use").attr("checked")){

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2013-05-27 04:32:23 UTC (rev 625)
+++ trunk/wp-theme/mc2-form.php	2013-05-27 05:22:35 UTC (rev 626)
@@ -121,6 +121,12 @@
 					    	</label>
 					    	<label id="infield-donation-website" for="donation-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="donation-website" value="" id="donation-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
+							<label class="optional-labels-fields">					     
+						    	<input type="checkbox" name="how-to-help" value="S" id="how-to-help" disabled="disabled"/>
+						    	<?php _e("We have a how to help webpage", "mc"); ?>
+					    	</label>
+					    	<label id="infield-how-to-help-website" for="how-to-help-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="how-to-help-website" value="" id="how-to-help-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 							<div style="clear: both;"></div>				  			
 					  	</div>					  					  					  
 				  	</div>				




More information about the Movecommons-commits mailing list