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

Mario Gallegos mgallegos at ourproject.org
Mon May 27 06:32:23 CEST 2013


Author: mgallegos
Date: 2013-05-27 06:32:23 +0200 (Mon, 27 May 2013)
New Revision: 625

Modified:
   trunk/src/mc-dia-form2.js
   trunk/wp-theme/mc2-form.php
Log:
Defect #528: Require link in 'we provide public doc about...'

Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2013-05-15 11:19:47 UTC (rev 624)
+++ trunk/src/mc-dia-form2.js	2013-05-27 04:32:23 UTC (rev 625)
@@ -591,6 +591,11 @@
 		});
 		
 	}
+	
+	function generate_sematic_code(){
+		$j('#semantic_code').val("");
+	}
+	
 	    
     $j('#submit_first').click(function(){
     	
@@ -890,6 +895,35 @@
 	});
 	
 	
+	$j('#organization-structure-website').click(function(){
+	    if($j(this).val()==''){ 
+	    	$j(this).val($j('#url').val());
+	    	$j(this).trigger('keydown');
+	    }    	
+	});
+	
+	$j('#internal-procedures-website').click(function(){
+	    if($j(this).val()==''){ 
+	    	$j(this).val($j('#url').val());
+	    	$j(this).trigger('keydown');
+	    }    	
+	});
+	
+	$j('#list-members-website').click(function(){
+	    if($j(this).val()==''){ 
+	    	$j(this).val($j('#url').val());
+	    	$j(this).trigger('keydown');
+	    }    	
+	});
+	
+	$j('#funding-sources-website').click(function(){
+	    if($j(this).val()==''){ 
+	    	$j(this).val($j('#url').val());
+	    	$j(this).trigger('keydown');
+	    }    	
+	});
+	
+	
 	$j("#registered-non-profit").click(function(){		
 	  if($j("#registered-non-profit").attr("checked")){
 	    $j('#non-profit-website').show();
@@ -967,7 +1001,51 @@
 	    $j('#infield-other-license-website').hide();
 	  }  
 	});
+		
+	$j("#organization-structure").click(function(){		
+	  if($j("#organization-structure").attr("checked")){
+	    $j('#organization-structure-website').show();
+	    $j('#infield-organization-structure-website').show();    
+	  }  	
+	  else{
+	    $j('#organization-structure-website').hide();
+	    $j('#infield-organization-structure-website').hide();
+	  }  
+	});
+
+	$j("#internal-procedures").click(function(){		
+	  if($j("#internal-procedures").attr("checked")){
+	    $j('#internal-procedures-website').show();
+	    $j('#infield-internal-procedures-website').show();    
+	  }  	
+	  else{
+	    $j('#internal-procedures-website').hide();
+	    $j('#infield-internal-procedures-website').hide();
+	  }  
+	});
 	
+	$j("#list-members").click(function(){		
+		  if($j("#list-members").attr("checked")){
+		    $j('#list-members-website').show();
+		    $j('#infield-list-members-website').show();    
+		  }  	
+		  else{
+		    $j('#list-members').hide();
+		    $j('#infield-list-members-website').hide();
+		  }  
+	});
+	
+	$j("#funding-sources").click(function(){		
+		  if($j("#funding-sources").attr("checked")){
+		    $j('#funding-sources-website').show();
+		    $j('#infield-funding-sources-website').show();    
+		  }  	
+		  else{
+		    $j('#funding-sources-website').hide();
+		    $j('#infield-funding-sources-website').hide();
+		  }  
+	});
+	
 	$j("#decisions-voting").click(function(){		
 	  if($j("#decisions-voting").attr("checked"))	    
 	    if($j("#decisions-consensus").attr("checked"))	    	

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2013-05-15 11:19:47 UTC (rev 624)
+++ trunk/wp-theme/mc2-form.php	2013-05-27 04:32:23 UTC (rev 625)
@@ -204,18 +204,26 @@
 						    	<input type="checkbox" name="organization-structure" value="S" id="organization-structure" disabled="disabled"/>
 						    	<?php _e("Our organization", "mc"); ?>
 					    	</label>
+					    	<label id="infield-organization-structure-website" for="organization-structure-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="organization-structure-website" value="" id="organization-structure-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 					    	<label class="optional-labels-fields" style="margin-left: 30px;">					     
 						    	<input type="checkbox" name="internal-procedures" value="S" id="internal-procedures" disabled="disabled"/>
 						    	<?php _e("Our internal procedures", "mc"); ?>
-					    	</label>
+					    	</label> 
+					    	<label id="infield-internal-procedures-website" for="internal-procedures-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="internal-procedures-website" value="" id="internal-procedures-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 					    	<label class="optional-labels-fields" style="margin-left: 30px;">					     
 						    	<input type="checkbox" name="list-members" value="S" id="list-members" disabled="disabled"/>
 						    	<?php _e("Our list of members", "mc"); ?>
 					    	</label>
+					    	<label id="infield-list-members-website" for="list-members-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="list-members-website" value="" id="list-members-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 					    	<label class="optional-labels-fields" style="margin-left: 30px;">					      
 						    	<input type="checkbox" name="funding-sources" value="S" id="funding-sources"  disabled="disabled"/>
 						    	<?php _e("Our funding sources", "mc"); ?>
 					    	</label>
+					    	<label id="infield-funding-sources-website" for="funding-sources-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="funding-sources-website" value="" id="funding-sources-website" style="width: 330px;margin-left: 42px;margin-top: 5px;display: none;">
 					  	</div>					  					  					  
 				  	</div>				  	
 			  	</div>
@@ -396,7 +404,8 @@
 				  </tr></tbody></table>
 			</div>			
 			<div class="label2" style="margin-left: 185px;float: left;font-size: 14px;"><?php _e("Include this code in the web of your collective:", "mc"); ?></div>
-			<textarea style="margin-left: 185px;margin-top: 20px;margin-bottom: 20px;" rows="4" cols="68" onfocus="this.select()" class="mc-icon88x31-code" id="mc-intro-textarea">&lt;div id="move-commons-badge"&gt;&lt;div xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:mc="http://movecommons.org/ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" about="waveclick.com.sv" typeof="mc:Collective"&gt;&lt;/div&gt;&lt;div property="foaf:name" content="Waveclick"&gt;&lt;/div&gt;&lt;div rel="foaf:homepage" href="waveclick.com.sv"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:NonProfit]"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:Reproducible]"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:ReinforcesOtherAims]"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:Representative]"&gt;&lt;/div&gt;&lt;div about="#dd" typeof="skos:Concept"&gt;&lt;/div&gt;&lt;div about="#dd" typeof="skos:Concept"&gt;&lt;/div&gt;&lt;a href="http://movecommons.org/en/np-rp-ro-rs/0.1/"&gt;&lt;img src="http://movecommons.org/mc/0.1/images/np-rp-ro-rs-88x31-0.1.png" alt="Move Commons Non-Profit, Reproducible, Reinforcing Other Aims, Representative" /&gt;&lt;/a&gt;&lt;p&gt;Move Commons Non-Profit, Reproducible, Reinforcing Other Aims, Representative&lt;/p&gt;&lt;/div&gt;</textarea>
+			<textarea id="semantic_code" name="semantic_code" style="margin-left: 185px;margin-top: 20px;margin-bottom: 20px;" rows="4" cols="68" onfocus="this.select()" class="mc-icon88x31-code" id="mc-intro-textarea">
+			&lt;div id="move-commons-badge"&gt;&lt;div xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:mc="http://movecommons.org/ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" about="waveclick.com.sv" typeof="mc:Collective"&gt;&lt;/div&gt;&lt;div property="foaf:name" content="Waveclick"&gt;&lt;/div&gt;&lt;div rel="foaf:homepage" href="waveclick.com.sv"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:NonProfit]"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:Reproducible]"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:ReinforcesOtherAims]"&gt;&lt;/div&gt;&lt;div rel="mc:moveCommonsType" resource="[mc:Representative]"&gt;&lt;/div&gt;&lt;div about="#dd" typeof="skos:Concept"&gt;&lt;/div&gt;&lt;div about="#dd" typeof="skos:Concept"&gt;&lt;/div&gt;&lt;a href="http://movecommons.org/en/np-rp-ro-rs/0.1/"&gt;&lt;img src="http://movecommons.org/mc/0.1/images/np-rp-ro-rs-88x31-0.1.png" alt="Move Commons Non-Profit, Reproducible, Reinforcing Other Aims, Representative" /&gt;&lt;/a&gt;&lt;p&gt;Move Commons Non-Profit, Reproducible, Reinforcing Other Aims, Representative&lt;/p&gt;&lt;/div&gt;</textarea>
 			<div class="label2" style="margin-left: 185px;float: left;font-size: 14px;"><a href="/initiatives.txt" target="_blank">Click here to download the CVS file.</a></div>
 			<div class="clear"></div>
 			<div>
@@ -474,7 +483,11 @@
 	$j('#infield-open-accounting-website').inFieldLabels();
 	$j('#infield-creative-commons-website').inFieldLabels();
 	$j('#infield-other-license-website').inFieldLabels();
-	$j('#infield-terms-of-use-website').inFieldLabels();			
+	$j('#infield-terms-of-use-website').inFieldLabels();
+	$j('#infield-organization-structure-website').inFieldLabels();
+	$j('#infield-internal-procedures-website').inFieldLabels();
+	$j('#infield-list-members-website').inFieldLabels();
+	$j('#infield-funding-sources-website').inFieldLabels();				
 	$j('.buttonp').button({ icons: {primary:'ui-icon-arrowthick-1-w'} });
 	$j('.buttonn').button({ icons: {secondary:'ui-icon-arrowthick-1-e'} });
 	$j( "#step2-radio").buttonset();




More information about the Movecommons-commits mailing list