changeset 1257:5bafe0f91f6e redmine-2.2-integration

Simplified JS on registration page.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 10 Apr 2013 11:57:46 +0100
parents 827705e14b3b
children f8c5708a6fd6
files public/javascripts/ssamr_registration.js
diffstat 1 files changed, 3 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/public/javascripts/ssamr_registration.js	Tue Apr 09 17:08:17 2013 +0100
+++ b/public/javascripts/ssamr_registration.js	Wed Apr 10 11:57:46 2013 +0100
@@ -1,17 +1,6 @@
-
-
 /* SSAMR specific functions */
 
-/* institution related functions */
+/* initialisation: disabling  the other institution text box */
 $(document).ready(function(){
-		if(!$('#ssamr_user_details_institution_type_true').checked && $('#ssamr_user_details_institution_type_true').checked){
-            $('#ssamr_user_details_other_institution').attr('disabled', 'disabled');
-            $('#ssamr_user_details_institution_id').removeAttr('disabled');
-            $('#ssamr_user_details_institution_type_true').checked = true;
-            $('#ssamr_user_details_institution_type_false').checked = false;
-		}
-	}
-);
-
-
-
+        $('#ssamr_user_details_other_institution').attr('disabled', 'disabled');
+    });
\ No newline at end of file