Could you post this the jquery-ui-dev group, please? Thanks!
http://groups.google.com/group/jquery-ui-dev

--John



On Mon, Jan 19, 2009 at 2:28 PM, Jake Kronika, Webmaster, Gridline
Design & Development <[email protected]> wrote:
> Hi,
>
> The following line, when added to the UI Tabs init() method, just prior to
> the event handler binding, causes all links with href attributes equivalent
> to those in tab nav to become tied to the tab nav automatically.
>
> this.$lis.each(function(){var
> tab=$('a[href]',this);$('a[href='+tab.attr('href')+']').each(function(){if(this!=tab){$(this).click(function(){tab.trigger(o.event+'.tabs');/*this
> should probably scroll to the top of the appropriate tab
> nav*/window.scrollTo(0,0);return false;});}});});
>
> This thereby reduces the need for selecting tabs from text links via the
> method described in the documentation:
> http://docs.jquery.com/UI/Tabs#...select_a_tab_from_a_text_link_instead_of_clicking_a_tab_itself
>
> A diff is attached... Cheers!
>
> --
> Jake Kronika
>  Owner, Web Designer & Developer
>  Gridline Design
>  www.gridlined.com
> Mobile: 773-458-4048
> Email:
>  [email protected]
>  [email protected]
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [jquery-dev] UI... Jake Kronika, Webmaster, Gridline Design & Development
    • [jquery-de... John Resig

Reply via email to