diff public/javascripts/ssamr_registration.js @ 212:f5860b03d365 feature_72

added js to external repository URL text field and checkbox.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 08 Feb 2011 15:07:08 +0000
parents d1713ab10813
children 827705e14b3b
line wrap: on
line diff
--- a/public/javascripts/ssamr_registration.js	Tue Feb 08 13:15:47 2011 +0000
+++ b/public/javascripts/ssamr_registration.js	Tue Feb 08 15:07:08 2011 +0000
@@ -4,13 +4,12 @@
 
 /* institution related functions */
 Event.observe(window, 'load',
-  function() {
-		
+  function() {		
 		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;
+		    $('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;
 		}
 	}
 );