> The new code, which introduced the scroll problem, did this:
>
> $(document).ready(function(){
>    $('#tabs').tabs({ cookie: { name: 'views/admin/
> teacher_status.tab' } });
>    $('#tabs').bind('tabsshow', function(event, ui) {
>       $('#tabs').tabs('option', 'cookie', { name: 'views/admin/
> teacher_status.tab' });
>    });
>
> });

Setting the cookie in the show event again is redundant. The following
should be just fine and fixes that glitch:

$(document).ready(function(){
   $('#tabs').tabs({ cookie: { name: 'views/admin/
teacher_status.tab' } });
});

(The problem is that setting the option in the show event will trigger
a (re)tabifying, all handling is gone the very moment the tab is
shown, thus the link is following the hash and because of that jumping
to the top.)


--Klaus
--~--~---------~--~----~------------~-------~--~----~
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