Topic: Tabbing through rendered partials

So I have some tabs. Within one tab a lesson is rendered (a course has_many lessons). Within that tab pane, I have a next and previous button set up to move through the lessons within the tab pane.

When I hit the next button, the next lesson is shown. However, when I hit the previous button, the result tab becomes the active tab in the parent grouping, instead of the previous lesson.

The Gist is here: https://gist.github.com/3767501

Ignore the haml/erb change. Any help greatly appreciated!

Last edited by pistola (2012-09-22 15:31:40)