To answer my own question, in case anyone else has the same problem...

I just commented out lines 415 and 416 of ui.accordion.js, and it did
what I wanted:

//              toHide.prev().attr('aria-expanded','false').attr("tabIndex",
"-1").blur();
//              toShow.prev().attr('aria-expanded','true').attr("tabIndex",
"0").focus();


On Jul 30, 12:10 pm, adam <[email protected]> wrote:
> I have a page with an automated accordion, where a new element opens
> every few seconds.  I do this by calling
>
> $("#accordion").accordion('activate', elementIndex);
>
> But this always seems to steal focus, which is particularly annoying
> when a user is trying to fill in a login form.  Is there any way to
> activate the element without stealing focus?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to