Mercurial > hg > soundsoftware-site
changeset 1256:827705e14b3b redmine-2.2-integration
Ported more javascript to jquery
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 09 Apr 2013 17:08:17 +0100 |
parents | 90d92ad3fc59 |
children | 5bafe0f91f6e |
files | public/javascripts/ssamr_registration.js |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/public/javascripts/ssamr_registration.js Tue Apr 09 17:06:21 2013 +0100 +++ b/public/javascripts/ssamr_registration.js Tue Apr 09 17:08:17 2013 +0100 @@ -3,13 +3,12 @@ /* 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; +$(document).ready(function(){ + if(!$('#ssamr_user_details_institution_type_true').checked && $('#ssamr_user_details_institution_type_true').checked){ + $('#ssamr_user_details_other_institution').attr('disabled', 'disabled'); + $('#ssamr_user_details_institution_id').removeAttr('disabled'); + $('#ssamr_user_details_institution_type_true').checked = true; + $('#ssamr_user_details_institution_type_false').checked = false; } } );