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

Mario Gallegos mgallegos at ourproject.org
Thu May 10 20:35:58 CEST 2012


Author: mgallegos
Date: 2012-05-10 20:35:58 +0200 (Thu, 10 May 2012)
New Revision: 336

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 18:19:51 UTC (rev 335)
+++ trunk/src/mc-dia-form2.js	2012-05-10 18:35:58 UTC (rev 336)
@@ -2,6 +2,19 @@
 
 // categories selection
 
+function clickCheckBox(id){
+	if($j('#'+id+'-checkbox').val()=='N'){
+		$('#'+id+'-checkbox').val('S');
+		$j("#mc-form-" + id).addClass("mc-form-descbox-selected");
+		$j("#mc-cat-selected-"+ id).slideDown();		
+	} 		 
+	else{
+		$('#'+id+'-checkbox').val('N');
+		$j("#mc-form-" + id).removeClass("mc-form-descbox-selected");
+		$j("#mc-cat-selected-"+ id).slideUp();		
+	}
+}
+
 function select_cat($id, $id2) {
   var cat_id = "#mc-form-" + $id;
   $j(cat_id + ",#mc-form-icon-" + $id).click(
@@ -398,7 +411,7 @@
   }  
 });
 
-
+/*
 $j("#button-close-a").click(function(){
 	$j("#mc-form-np").removeClass("mc-form-descbox-selected");
 	$j("#mc-cat-selected-np").slideUp();
@@ -422,4 +435,5 @@
 	$j("#mc-form-gr").removeClass("mc-form-descbox-selected");
 	$j("#mc-cat-selected-gr").slideUp();
 	$('#mc-form-optional-grassroots').hide();
-});
\ No newline at end of file
+});
+*/
\ No newline at end of file

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2012-05-10 18:19:51 UTC (rev 335)
+++ trunk/wp-theme/mc2-form.php	2012-05-10 18:35:58 UTC (rev 336)
@@ -79,7 +79,7 @@
 				    	<div id="mc-form-more-link-np" class="mc-form-link"><?php _e("What is this?", "mc"); ?></div>
 				    	<div id="mc-form-less-link-np" class="mc-form-link"><?php _e("less info", "mc"); ?></div>
 				    	 -->
-				    	<div class="mc-form-descbox-header"><?php _e("Non-Profit", "mc"); ?><input id="np-checkbox" name="np-checkbox" type="checkbox" value="N" onclick="if($('#np-checkbox').val()=='N') $('#np-checkbox').val('S'); else $('#np-checkbox').val('N');"></div>				    	
+				    	<div class="mc-form-descbox-header"><?php _e("Non-Profit", "mc"); ?><input id="np-checkbox" name="np-checkbox" type="checkbox" value="N" onclick="clickCheckBox('np')"></div>				    	
 				    	<div class="mc-form-descbox-intro"><?php _e("Your initiative does not seek economic benefit", "mc"); ?></div>
 					    <div id="mc-form-more-text-np" class="mc-form-more-text-v2">
 							<?php _e("<ul> <li>The initiative does not seek economic benefit</li> <li>Any surplus funds of the initiative are used to help pursue its goals instead of distributing them to owners or shareholders.</li> </ul>", "mc"); ?>




More information about the Movecommons-commits mailing list