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

Mario Gallegos mgallegos at ourproject.org
Tue Jun 5 20:25:57 CEST 2012


Author: mgallegos
Date: 2012-06-05 20:25:57 +0200 (Tue, 05 Jun 2012)
New Revision: 472

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 18:18:52 UTC (rev 471)
+++ trunk/src/mc-dia-form2.js	2012-06-05 18:25:57 UTC (rev 472)
@@ -3,7 +3,7 @@
 // categories selection
 
 function clickCheckBox(id,answer){
-	if($j('#'+id+'-checkbox').val()=='N'){
+	if(answer=='yes'){
 		if ($j("#mc-form-" + id).is('.mc-form-descbox-selected')) return;
 		$j('#'+id+'-checkbox').val('S');
 		$j("#mc-form-" + id).addClass("mc-form-descbox-selected");

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2012-06-05 18:18:52 UTC (rev 471)
+++ trunk/wp-theme/mc2-form.php	2012-06-05 18:25:57 UTC (rev 472)
@@ -72,8 +72,8 @@
 				<div style="width: 100%;float: left;margin-bottom: 20px;">
 					<div class="label2" style="margin-left: 185px;float: left;"><?php _e("2. Is your initiative Non-Profit?", "mc"); ?></div>
 					<div id="step2-radio" style="float: left;margin-left: 10px;margin-top: 10px;">
-						<input type="radio" id="step2-yes" name="radio" onclick="clickCheckBox('np');"/><label for="step2-yes" style="font-size: 14px;">Yes</label>
-						<input type="radio" id="step2-no" name="radio" onclick="clickCheckBox('np');"/><label for="step2-no" style="font-size: 14px;">No</label>					
+						<input type="radio" id="step2-yes" name="radio" onclick="clickCheckBox('np','yes');"/><label for="step2-yes" style="font-size: 14px;">Yes</label>
+						<input type="radio" id="step2-no" name="radio" onclick="clickCheckBox('np','no');"/><label for="step2-no" style="font-size: 14px;">No</label>					
 					</div>
 				</div>		  	
 			 	<div class="mc-form-rounded mc-form-category-group-v2 float-left" id="mc-form-category-group-a">				    
@@ -142,8 +142,8 @@
 				<div style="width: 100%;float: left;margin-bottom: 20px;">
 					<div class="label2" style="margin-left: 185px;float: left;"><?php _e("3. Is your initiative Reproducible?", "mc"); ?></div>
 					<div id="step3-radio" style="float: left;margin-left: 10px;margin-top: 10px;">
-						<input type="radio" id="step3-yes" name="radio" onclick="clickCheckBox('rp');"/><label for="step3-yes" style="font-size: 14px;">Yes</label>
-						<input type="radio" id="step3-no" name="radio" onclick="clickCheckBox('rp');"/><label for="step3-no" style="font-size: 14px;">No</label>					
+						<input type="radio" id="step3-yes" name="radio" onclick="clickCheckBox('rp','yes');"/><label for="step3-yes" style="font-size: 14px;">Yes</label>
+						<input type="radio" id="step3-no" name="radio" onclick="clickCheckBox('rp','no');"/><label for="step3-no" style="font-size: 14px;">No</label>					
 					</div>
 				</div>				
 			  	<div class="mc-form-rounded mc-form-category-group-v2 float-left" id="mc-form-category-group-b">				    
@@ -233,8 +233,8 @@
 				<div style="width: 100%;float: left;margin-bottom: 20px;">
 					<div class="label2" style="margin-left: 170px;float: left;"><?php _e("4. Does your initiative Reinforce the Commons?", "mc"); ?></div>
 					<div id="step4-radio" style="float: left;margin-left: 10px;margin-top: 10px;">
-						<input type="radio" id="step4-yes" name="radio" onclick="clickCheckBox('rc');"/><label for="step4-yes" style="font-size: 14px;">Yes</label>
-						<input type="radio" id="step4-no" name="radio" onclick="clickCheckBox('rc');"/><label for="step4-no" style="font-size: 14px;">No</label>					
+						<input type="radio" id="step4-yes" name="radio" onclick="clickCheckBox('rc','yes');"/><label for="step4-yes" style="font-size: 14px;">Yes</label>
+						<input type="radio" id="step4-no" name="radio" onclick="clickCheckBox('rc','no');"/><label for="step4-no" style="font-size: 14px;">No</label>					
 					</div>
 				</div>				
 			  	<div class="mc-form-rounded mc-form-category-group-v2 float-left" style="padding-top: 35px;" id="mc-form-category-group-c">				    
@@ -295,8 +295,8 @@
 				<div style="width: 100%;float: left;margin-bottom: 20px;">
 					<div class="label2" style="margin-left: 125px;float: left;"><?php _e("5. Is your initiative driven by horizontal collective decisions?", "mc"); ?></div>
 					<div id="step5-radio" style="float: left;margin-left: 10px;margin-top: 10px;">
-						<input type="radio" id="step5-yes" name="radio" onclick="clickCheckBox('gr');"/><label for="step5-yes" style="font-size: 14px;">Yes</label>
-						<input type="radio" id="step5-no" name="radio" onclick="clickCheckBox('gr');"/><label for="step5-no" style="font-size: 14px;">No</label>					
+						<input type="radio" id="step5-yes" name="radio" onclick="clickCheckBox('gr','yes');"/><label for="step5-yes" style="font-size: 14px;">Yes</label>
+						<input type="radio" id="step5-no" name="radio" onclick="clickCheckBox('gr','no');"/><label for="step5-no" style="font-size: 14px;">No</label>					
 					</div>
 				</div>						  	
 			  	<div class="mc-form-rounded mc-form-category-group-v2 float-left" id="mc-form-category-group-d">			    




More information about the Movecommons-commits mailing list