[Movecommons-commits] r520 - trunk/src

Mario Gallegos mgallegos at ourproject.org
Tue Oct 2 07:30:52 CEST 2012


Author: mgallegos
Date: 2012-10-02 07:30:51 +0200 (Tue, 02 Oct 2012)
New Revision: 520

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


Modified: trunk/src/mc-dia-form2.js
===================================================================
--- trunk/src/mc-dia-form2.js	2012-10-02 05:17:04 UTC (rev 519)
+++ trunk/src/mc-dia-form2.js	2012-10-02 05:30:51 UTC (rev 520)
@@ -553,6 +553,7 @@
 
     //first_step
     $j('form').submit(function(){ return false; });
+    
     $j('#submit_first').click(function(){
         //remove classes
         $j('#first_step input').removeClass('error').removeClass('valid');
@@ -590,7 +591,17 @@
         } else return false;
     });
     
+    $j('#p_submit_second').click(function(){           
+	        //update progress bar
+    	 	$j('#progress').css('width','0');
+    	 	$j('#progress_text').html('0% Complete');
+	        
+	        //slide steps    	 	
+	        $j('#second_step').slideUp();
+	        $j('#first_step').slideDown();
+    });
     
+    
     $j('#submit_second').click(function(){
     	
     	var error=false;
@@ -639,6 +650,16 @@
         $j('#third_step').slideDown();
 
     });
+    
+    $j('#p_submit_third').click(function(){           
+        //update progress bar
+    	$j('#progress_text').html('20% Complete');
+        $j('#progress').css('width','68px');
+        
+        //slide steps    	 	
+        $j('#third_step').slideUp();
+        $j('#second_step').slideDown();
+    });
 
 
     $j('#submit_third').click(function(){
@@ -689,6 +710,15 @@
         $j('#fourth_step').slideDown();
     });
 
+    $j('#p_submit_fourth').click(function(){           
+        //update progress bar
+    	$j('#progress_text').html('40% Complete');
+        $j('#progress').css('width','136px');
+        
+        //slide steps    	 	
+        $j('#fourth_step').slideUp();
+        $j('#third_step').slideDown();
+    });
 
     $j('#submit_fourth').click(function(){
     	    	    	
@@ -713,6 +743,16 @@
         
     });
     
+    $j('#p_submit_fifth').click(function(){           
+    	//update progress bar
+        $j('#progress_text').html('60% Complete');
+        $j('#progress').css('width','204px');
+        
+        //slide steps    	 	
+        $j('#fifth_step').slideUp();
+        $j('#fourth_step').slideDown();
+    });
+    
     $j('#submit_fifth').click(function(){
     	
     	if($j('#gr-checkbox').val()=='A'){
@@ -736,6 +776,16 @@
 */    	
     });
     
+    $j('#p_submit_sixth').click(function(){           
+    	//update progress bar
+    	$j('#progress_text').html('80% Complete');
+        $j('#progress').css('width','272px');
+        
+        //slide steps    	 	
+        $j('#sixth_step').slideUp();
+        $j('#fifth_step').slideDown();
+    });
+    
     $j('#non-profit-website').click(function(){
         if($j(this).val()==''){ 
         	$j(this).val($j('#url').val());




More information about the Movecommons-commits mailing list