[Movecommons-commits] r499 - trunk/src

Mario Gallegos mgallegos at ourproject.org
Wed Jun 6 00:36:09 CEST 2012


Author: mgallegos
Date: 2012-06-06 00:36:09 +0200 (Wed, 06 Jun 2012)
New Revision: 499

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


Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2012-06-05 22:28:54 UTC (rev 498)
+++ trunk/src/mc-dia-form2.js	2012-06-05 22:36:09 UTC (rev 499)
@@ -593,23 +593,7 @@
         } else return false;
     });
     
-    $j('#non-profit-website','#open-accounting-website','#donation-website').click(function(){
-        if($j(this).val()==''){ 
-        	$j(this).val($j('#url').val());
-        	$j(this).trigger('keydown');
-        }    	
-    });
     
-    /*$j('#open-accounting-website').click(function(){
-        if($j(this).val()==''){ 
-        	$j(this).val($j('#url').val());
-        	$j(this).trigger('keydown');
-        }    	
-    });*/
-    
-
-
-
     $j('#submit_second').click(function(){
         //remove classes
         /*$j('#second_step input').removeClass('error').removeClass('valid');
@@ -738,6 +722,48 @@
         $j('#second_step').slideUp();
         $j('#third_step').slideDown();
 */    	
-    });    
+    });
+    
+    $j('#non-profit-website').click(function(){
+        if($j(this).val()==''){ 
+        	$j(this).val($j('#url').val());
+        	$j(this).trigger('keydown');
+        }    	
+    });
+    
+    $j('#open-accounting-website').click(function(){
+        if($j(this).val()==''){ 
+        	$j(this).val($j('#url').val());
+        	$j(this).trigger('keydown');
+        }    	
+    });
+    
+    $j('#donation-website').click(function(){
+        if($j(this).val()==''){ 
+        	$j(this).val($j('#url').val());
+        	$j(this).trigger('keydown');
+        }    	
+    });
+    
+    $j('#terms-of-use-website').click(function(){
+        if($j(this).val()==''){ 
+        	$j(this).val($j('#url').val());
+        	$j(this).trigger('keydown');
+        }    	
+    });
+    
+    $j('#creative-commons-website').click(function(){
+        if($j(this).val()==''){ 
+        	$j(this).val($j('#url').val());
+        	$j(this).trigger('keydown');
+        }    	
+    });
+    
+    $j('#other-license-website').click(function(){
+        if($j(this).val()==''){ 
+        	$j(this).val($j('#url').val());
+        	$j(this).trigger('keydown');
+        }    	
+    });
 
 });
\ No newline at end of file




More information about the Movecommons-commits mailing list