Wilto / Dynamic-Carousel

A carousel plugin built for responsive layouts. There are many like it, but this one is mine.
matmarquis.com/carousel/
472 stars 112 forks source link

Disable next and previous button when there is only one slide #32

Closed mtyaka closed 13 years ago

mtyaka commented 13 years ago

When there is only one slide, previous and next slide button should both be disabled.

We are using dynamic carousel to display search results, with multiple results displayed on each slide. Some queries yield so few search results that they all fit on one slide, and we end up with a single-slide carousel. In that case both buttons should be disabled.

Wilto commented 13 years ago

Very nice—more efficient than my code, as well. Thanks!