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

Mario Gallegos mgallegos at ourproject.org
Fri May 11 00:31:01 CEST 2012


Author: mgallegos
Date: 2012-05-11 00:31:00 +0200 (Fri, 11 May 2012)
New Revision: 347

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-05-10 19:40:36 UTC (rev 346)
+++ trunk/src/mc-dia-form2.js	2012-05-10 22:31:00 UTC (rev 347)
@@ -7,11 +7,27 @@
 		$('#'+id+'-checkbox').val('S');
 		$j("#mc-form-" + id).addClass("mc-form-descbox-selected");
 		$j("#mc-cat-selected-"+ id).slideDown();		
+		if(id=='np'){
+			$("#registered-non-profit").removeAttr("disabled");
+			$("#open-accounting").removeAttr("disabled");
+			$("#accept-donations").removeAttr("disabled");			
+		}
 	} 		 
 	else{
 		$('#'+id+'-checkbox').val('N');
 		$j("#mc-form-" + id).removeClass("mc-form-descbox-selected");
-		$j("#mc-cat-selected-"+ id).slideUp();		
+		$j("#mc-cat-selected-"+ id).slideUp();
+		if(id=='np'){
+			$("registered-non-profit").attr("disabled", "disabled");
+			$("open-accounting").attr("disabled", "disabled");
+			$("accept-donations").attr("disabled", "disabled");
+			$j('#non-profit-website').hide();
+			$j('#infield-non-profit-website').hide();
+			$j('#open-accounting-website').hide();
+			$j('#infield-open-accounting-website').hide();
+			$j('#donation-website').hide();
+			$j('#infield-donation-website').hide();
+		}
 	}
 }
 
@@ -356,6 +372,7 @@
   }  
 });
 
+
 $j("#open-accounting").click(function(){		
   if($j("#open-accounting").attr("checked")){
     $j('#open-accounting-website').show();

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2012-05-10 19:40:36 UTC (rev 346)
+++ trunk/wp-theme/mc2-form.php	2012-05-10 22:31:00 UTC (rev 347)
@@ -97,19 +97,19 @@
 			  			<div class="blockMe1" style="position: relative;float: left;width: 440px;font-size: 16px;margin-left: 10px;margin-top: 30px;border: 1px solid #B7C4C8;padding-bottom: 10px;">
 					  		<label id="mc-optional-non-profit" style="color: #444;background-color: #FEFBFD;"><?php _e("Optional", "mc"); ?></label>					  				  
 					    	<label class="optional-labels-fields">					     
-						    	<input type="checkbox" name="registered-non-profit" value="S" id="registered-non-profit"/>
+						    	<input type="checkbox" name="registered-non-profit" value="S" id="registered-non-profit" disabled="disabled"/>
 						    	<?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" 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"/>
+						    	<input type="checkbox" name="open-accounting" value="S" id="open-accounting" disabled="disabled"/>
 						    	<?php _e("We have Open-accounting", "mc"); ?>
 					    	</label>
 					    	<label id="infield-open-accounting-website" for="open-accounting-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="open-accounting-website" value="" id="open-accounting-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 					    	<label class="optional-labels-fields">					     
-						    	<input type="checkbox" name="accept-donations" value="S" id="accept-donations" onblur="if($j('#infield-donation-website').css('display')=='none') $j('#registered-non-profit').focus();"/>
+						    	<input type="checkbox" name="accept-donations" value="S" id="accept-donations" onblur="if($j('#infield-donation-website').css('display')=='none') $j('#registered-non-profit').focus();" disabled="disabled"/>
 						    	<?php _e("We accept donations", "mc"); ?>
 					    	</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>




More information about the Movecommons-commits mailing list