> 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