Mercurial > hg > soundsoftware-site
comparison public/javascripts/application.js @ 160:7eb2194ee428 feature_55
. institution field correctly handled in the user edit and show forms, and in the register view;
author | luisf |
---|---|
date | Fri, 28 Jan 2011 18:44:56 +0000 |
parents | 94944d00e43c |
children | bad82329a115 |
comparison
equal
deleted
inserted
replaced
158:e71a969c151a | 160:7eb2194ee428 |
---|---|
237 el.hide(); | 237 el.hide(); |
238 }); | 238 }); |
239 } | 239 } |
240 | 240 |
241 Event.observe(window, 'load', hideOnLoad); | 241 Event.observe(window, 'load', hideOnLoad); |
242 | |
243 | |
244 /* SSAMR specific functions */ | |
245 | |
246 /* institution related functions */ | |
247 Event.observe(window, 'load', | |
248 function() { | |
249 if($('ssamr_user_details_institution_type_true').checked) | |
250 $('ssamr_user_details_other_institution').disable(); | |
251 else if($('ssamr_user_details_institution_type_false').checked) | |
252 $('ssamr_user_details_institution_id').disable(); | |
253 } | |
254 ); | |
255 | |
256 | |
257 function enable_disable_institution_field(field){ | |
258 | |
259 // if($(field).enabled) | |
260 // field.disable(); | |
261 // else | |
262 field.enable(); | |
263 | |
264 } | |
265 | |
266 | |
267 | |
268 |