micc83 / fontIconPicker

🌈 jQuery fontIconPicker v2 is a small (3.22kb gzipped) jQuery plugin which allows you to include a simple icon picker with search and pagination inside your administration forms.
http://micc83.github.io/fontIconPicker/
MIT License
266 stars 87 forks source link

Pagination buttons doesn't work properly #8

Closed swashata closed 10 years ago

swashata commented 10 years ago

Steps to reproduce:

  1. Select a certain category where pagination > 1.
  2. Navigate to last page, this will hide the next arrow.
  3. Now select another category where pagination > 1.
  4. Icons will be rendered from first page but the next and previous button will not reset.

Already working on a fix. Will upload on the 2.1.0 branch.

swashata commented 10 years ago

More info:

This bug happens only when appendTo is set to something other than 'self'. Possible solution is to calculate the pagination inside this.renderIconContainer() instead of everywhere else.