[Movecommons-commits] r349 - trunk/src

Mario Gallegos mgallegos at ourproject.org
Fri May 11 00:46:03 CEST 2012


Author: mgallegos
Date: 2012-05-11 00:46:02 +0200 (Fri, 11 May 2012)
New Revision: 349

Modified:
   trunk/src/mc-dia-form2.js
Log:


Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2012-05-10 22:35:54 UTC (rev 348)
+++ trunk/src/mc-dia-form2.js	2012-05-10 22:46:02 UTC (rev 349)
@@ -12,6 +12,15 @@
 			$("#open-accounting").removeAttr("disabled");
 			$("#accept-donations").removeAttr("disabled");			
 		}
+		if(id=='rp'){
+			$("#terms-of-use").removeAttr("disabled");
+			$("#terms-of-use-website").removeAttr("disabled");
+			$("#creative-commons-website").removeAttr("disabled");						
+			$("#organization-structure").removeAttr("disabled");
+			$("#projects-and-results").removeAttr("disabled");
+			$("#methods-procedures").removeAttr("disabled");
+			$("#documentation").removeAttr("disabled");
+		}
 	} 		 
 	else{
 		$('#'+id+'-checkbox').val('N');
@@ -31,6 +40,28 @@
 			$j('#donation-website').hide();
 			$j('#infield-donation-website').hide();
 		}
+		if(id=='rp'){
+			$("#terms-of-use").attr("disabled", "disabled");
+			$('#terms-of-use').attr('checked', false);
+			$("#terms-of-use-website").attr("disabled", "disabled");
+			$('#terms-of-use-website').attr('checked', false);
+			$("#creative-commons-website").attr("disabled", "disabled");
+			$('#creative-commons-website').attr('checked', false);			
+			$("#organization-structure").attr("disabled", "disabled");
+			$('#organization-structure').attr('checked', false);
+			$("#projects-and-results").attr("disabled", "disabled");
+			$('#projects-and-results').attr('checked', false);
+			$("#methods-procedures").attr("disabled", "disabled");
+			$('#methods-procedures').attr('checked', false);
+			$("#documentation").attr("disabled", "disabled");
+			$('#documentation').attr('checked', false);
+			$j('#terms-of-use-website').hide();
+			$j('#infield-terms-of-use-website').hide();
+			$j('#creative-commons-website').hide();
+			$j('#infield-creative-commons-website').hide();
+			$j('#other-license-website').hide();
+			$j('#infield-other-license-website').hide();
+		}
 	}
 }
 
@@ -409,6 +440,7 @@
   }  
 });
 
+
 $j("#creative-commons").click(function(){		
   if($j("#creative-commons").attr("checked")){
     $j('#creative-commons-website').show();




More information about the Movecommons-commits mailing list