comparison public/javascripts/ssamr_institutions.js @ 184:b46db3a8b1b4 cannam-pre-20110113-merge

Merge from branch "feature_55"
author Chris Cannam
date Thu, 03 Feb 2011 15:15:30 +0000
parents bd3f92477cbb
children f9fe5ef6156e
comparison
equal deleted inserted replaced
172:be1bccc405d9 184:b46db3a8b1b4
1
2
3 /* SSAMR specific functions */
4
5 /* institution related functions */
6 Event.observe(window, 'load',
7 function() {
8 $('ssamr_user_details_institution_type_true').observe('click', function(e, el) {
9 $('ssamr_user_details_other_institution').disable();
10 $('ssamr_user_details_institution_id').enable();
11 });
12
13 $('ssamr_user_details_institution_type_false').observe('click', function(e, el) {
14 $('ssamr_user_details_other_institution').enable();
15 $('ssamr_user_details_institution_id').disable();
16 });
17
18 if($('ssamr_user_details_institution_type_true').checked)
19 $('ssamr_user_details_other_institution').disable();
20 else if($('ssamr_user_details_institution_type_false').checked)
21 $('ssamr_user_details_institution_id').disable();
22 }
23 );
24
25
26