# HG changeset patch # User luisf # Date 1365591466 -3600 # Node ID 5bafe0f91f6e14bdad381a968531a78246215876 # Parent 827705e14b3ba858d29a4141b13c59e1233a23c0 Simplified JS on registration page. diff -r 827705e14b3b -r 5bafe0f91f6e public/javascripts/ssamr_registration.js --- 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