ProLoser/AnythingSlider — Issue #288: Custom nav not updating when new slide added
Author: shaungallagher
Created: 2012-02-22 17:41:59+00:00
State: open

I'm adding a new slide to an existing infinite slideshow, but the custom navigation tabs aren't updating.

The slideshow is based on the one on http://www.threadless.com

Use Firebug or a similar tool to run the following code on that homepage:

```javascript
var first = $('.slider .w > ul > li:not(.cloned):first')[0];
var first2 = $(first).clone();
$(first).before(first2);

$('.slider').data('AnythingSlider').pages = 4;
$('.slider').data('AnythingSlider').currentPage = 1;
$('.slider').anythingSlider();
```

The new slide gets added to the DOM, but the nav acts as if it doesn't exist, even though I've updated the slider.