comparison public/javascripts/application.js @ 161:bad82329a115 feature_55

new javascript for institution field handling.
author luisf
date Mon, 31 Jan 2011 13:41:00 +0000
parents 7eb2194ee428
children 73ff0e6a11b1
comparison
equal deleted inserted replaced
160:7eb2194ee428 161:bad82329a115
239 } 239 }
240 240
241 Event.observe(window, 'load', hideOnLoad); 241 Event.observe(window, 'load', hideOnLoad);
242 242
243 243
244 /* SSAMR specific functions */ 244
245 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