nathansearles / slidesjs

SlidesJS is obsolete and no longer maintained.
https://nathansearles.github.io/slidesjs/
1.71k stars 356 forks source link

Update jquery.slides.js - use jquery delegate for navigation click event... #534

Open PrimalZed opened 11 years ago

PrimalZed commented 11 years ago

Update jquery.slides.js - use jquery delegate for navigation click events instead of jquery click; specify slidesjs-pagination-item for 'active' class selector

This allows the user to add in additional navigation buttons after the slidersjs is initialized. My personal use case was adding navigation buttons to the pagination list: var pagination = $('.slidesjs-pagination', container); $('.slidesjs-pagination-item:first', pagination).before( '

  • ' + '' + '
  • ' ); pagination.append( '
  • ' + '' + '
  • ' );