Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/public/javascripts/application.js Thu Jan 27 18:46:29 2011 +0000 +++ b/public/javascripts/application.js Fri Jan 28 18:44:56 2011 +0000 @@ -239,3 +239,30 @@ } Event.observe(window, 'load', hideOnLoad); + + +/* SSAMR specific functions */ + +/* institution related functions */ +Event.observe(window, 'load', + function() { + if($('ssamr_user_details_institution_type_true').checked) + $('ssamr_user_details_other_institution').disable(); + else if($('ssamr_user_details_institution_type_false').checked) + $('ssamr_user_details_institution_id').disable(); + } +); + + +function enable_disable_institution_field(field){ + + // if($(field).enabled) + // field.disable(); + // else + field.enable(); + +} + + + +