Revision 1257:5bafe0f91f6e public/javascripts
| public/javascripts/ssamr_registration.js | ||
|---|---|---|
| 1 |
|
|
| 2 |
|
|
| 3 | 1 |
/* SSAMR specific functions */ |
| 4 | 2 |
|
| 5 |
/* institution related functions */
|
|
| 3 |
/* initialisation: disabling the other institution text box */
|
|
| 6 | 4 |
$(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;
|
|
| 12 |
} |
|
| 13 |
} |
|
| 14 |
); |
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 5 |
$('#ssamr_user_details_other_institution').attr('disabled', 'disabled');
|
|
| 6 |
}); |
|
Also available in: Unified diff