Readonly textarea field in lightbox example doesn't work

I cut and pasted this into my code but it doesn’t work?

-David

575 scheduler.config.lightbox.sections=[
576 { name:“links”, height:30, map_to:“auto”, type:“link_editor” },
577 { name:“description”, height:25, map_to:“text”, type:“textarea”, focus:true },
578 {name:“event_type”, height:20, type:“select”, options: event_type, map_to:“event_type”
, onchange: onTypeChange },
579 {name:“time”, height:72, type:“time”, map_to:“auto”},
580 { name:“last_note”, height:45, type:“textarea” },
581 //{name:“division”, height:20, type:“div_editor”, map_to:“division” },
582 {name:“division”, height:20, type:“select”, map_to:“division”, options:divisions,
583 onchange: onDivChange },
584 { name:“media_type”, height:20, map_to:“media_type”, vertical:false, type:“radio”, opt
ions:media_types },
585 {name:“recurring”, height:115, type:“recurring”, map_to:“rec_type”, button:“recurring”
},
586 { name:“checkbox”, height:30, map_to:“auto”, type:“checkbox_editor” },
587 { name:“cancel_reason”, height:20, map_to:“cancel_reason”, type:“textarea” },
588 ];
589
590 scheduler.form_blocks.textarea.set_value=function(node,value,ev){
591 node.firstChild.value=value||"";
592 node.firstChild.disabled = ev.disabled;
593 }

Hi,
probably the easier way to make an input readonly, is do disable it explicitly when the ligthbox is opened:scheduler.attachEvent("onLightbox", function(){ var section = scheduler.formSection("description"); section.control.disabled = true; });
where “description” is a name of related lightbox section.
We’ll add a corrections to the docs article

Worked like a charm

Didn’t help that the last_note was the field I was trying to disable dah…

Thanks so much,

David