I want the next and prev buttons to have two uses.
First: the standard next and prev through the jcarousel. This I have working.
Second, if the user is at the last item in a group, the next button will instead go to the next group.
I have Groups with many Projects
I am running a loop for the projects inside the Group#show view to list the projects in a given group. So when the loop gets to the last project, I would like to change the NExt button into a Next_group button. I know how to write an if statement but I don't know what I am saying if about...
anyone have any ideas? My current buttons:
<a href="#" id="mycarousel-prev"><%= image_tag 'scroll_left.png'%></a>
<a href="#" id="mycarousel-next"><%= image_tag 'scroll_right.png'%></a>