Revision 1256:827705e14b3b

View differences:

public/javascripts/ssamr_registration.js
3 3
/* SSAMR specific functions */
4 4

  
5 5
/* institution related functions */
6
Event.observe(window, 'load',
7
  function() {		
8
		if(!$('ssamr_user_details_institution_type_true').checked && $('ssamr_user_details_institution_type_true').checked){
9
		    $('ssamr_user_details_other_institution').disable();
10
		    $('ssamr_user_details_institution_id').enable();
11
		    $('ssamr_user_details_institution_type_true').checked = true;
12
		    $('ssamr_user_details_institution_type_false').checked = false;
6
$(document).ready(function(){
7
		if(!$('#ssamr_user_details_institution_type_true').checked && $('#ssamr_user_details_institution_type_true').checked){
8
            $('#ssamr_user_details_other_institution').attr('disabled', 'disabled');
9
            $('#ssamr_user_details_institution_id').removeAttr('disabled');
10
            $('#ssamr_user_details_institution_type_true').checked = true;
11
            $('#ssamr_user_details_institution_type_false').checked = false;
13 12
		}
14 13
	}
15 14
);

Also available in: Unified diff