Mercurial > hg > soundsoftware-site
diff public/javascripts/ssamr_registration.js @ 1337:077b8890835a cannam
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:02 +0100 |
parents | 5bafe0f91f6e |
children |
line wrap: on
line diff
--- a/public/javascripts/ssamr_registration.js Fri Jun 14 11:30:07 2013 +0100 +++ b/public/javascripts/ssamr_registration.js Thu Jun 20 13:14:02 2013 +0100 @@ -1,18 +1,6 @@ - - /* SSAMR specific functions */ -/* institution related functions */ -Event.observe(window, 'load', - function() { - if(!$('ssamr_user_details_institution_type_true').checked && $('ssamr_user_details_institution_type_true').checked){ - $('ssamr_user_details_other_institution').disable(); - $('ssamr_user_details_institution_id').enable(); - $('ssamr_user_details_institution_type_true').checked = true; - $('ssamr_user_details_institution_type_false').checked = false; - } - } -); - - - +/* initialisation: disabling the other institution text box */ +$(document).ready(function(){ + $('#ssamr_user_details_other_institution').attr('disabled', 'disabled'); + }); \ No newline at end of file