diff public/javascripts/ssamr_registration.js @ 192:d1713ab10813 feature_64

feature_64: link to terms and conditions wiki page; fixed form resubmission bug.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 07 Feb 2011 12:30:26 +0000
parents bd3f92477cbb
children f5860b03d365
line wrap: on
line diff
--- a/public/javascripts/ssamr_registration.js	Thu Feb 03 17:11:33 2011 +0000
+++ b/public/javascripts/ssamr_registration.js	Mon Feb 07 12:30:26 2011 +0000
@@ -5,12 +5,14 @@
 /* institution related functions */
 Event.observe(window, 'load',
   function() {
-	
-  $('ssamr_user_details_other_institution').disable();
-  $('ssamr_user_details_institution_id').enable();
-  $('ssamr_user_details_institution_type_true').checked = true;
-  $('ssamr_user_details_institution_type_false').checked = false;
-}
+		
+		if(!$('ssamr_user_details_institution_type_true').checked && $('ssamr_user_details_institution_type_true').checked){
+  			$('ssamr_user_details_other_institution').disable();
+  			$('ssamr_user_details_institution_id').enable();
+  			$('ssamr_user_details_institution_type_true').checked = true;
+  			$('ssamr_user_details_institution_type_false').checked = false;
+		}
+	}
 );