[Accordion] accordionchange Event Changes

[Accordion] accordionchange Event Changes


Hi there,
I'm working on upgrading to the latest UI accordion code. I'm trying
to work through a BC issue around the accordionchange event. What I
did before was take an action based on the new header selected. Is
this still possible?
My code looks like this. ui is currently null.
$(".accordian_nav").bind("accordionchange", function(event, ui) {
switch(ui.newHeader.attr("id")) {
case "patient_appointment" :
$("#patient_appointment_date").focus();
break;
case "reschedule_case" :
$("#reschedule_send_to_lab_date").focus();
break;
case "case_note" :
$("#case_note_text").focus();
break;
case "attach_files" :
$("#file_uploader").focus();
break;
}
});
Thanks!
Mike