Revision 443:350acce374a2 public/javascripts
| public/javascripts/repository.js | ||
|---|---|---|
| 1 |
function toggle_ext_url(){
|
|
| 2 |
if($('repository_is_external').checked)
|
|
| 3 |
$('repository_external_url').enable();
|
|
| 4 |
else |
|
| 5 |
$('repository_external_url').disable();
|
|
| 6 |
} |
|
| 7 |
|
|
| public/javascripts/ssamr_registration.js | ||
|---|---|---|
| 4 | 4 |
|
| 5 | 5 |
/* institution related functions */ |
| 6 | 6 |
Event.observe(window, 'load', |
| 7 |
function() {
|
|
| 8 |
|
|
| 7 |
function() {
|
|
| 9 | 8 |
if(!$('ssamr_user_details_institution_type_true').checked && $('ssamr_user_details_institution_type_true').checked){
|
| 10 |
$('ssamr_user_details_other_institution').disable();
|
|
| 11 |
$('ssamr_user_details_institution_id').enable();
|
|
| 12 |
$('ssamr_user_details_institution_type_true').checked = true;
|
|
| 13 |
$('ssamr_user_details_institution_type_false').checked = false;
|
|
| 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;
|
|
| 14 | 13 |
} |
| 15 | 14 |
} |
| 16 | 15 |
); |
Also available in: Unified diff