Jowin / Datatables-Bootstrap3

Plugin for Datatables Bootstrap3 UI Compatibility
215 stars 82 forks source link

Pagination - Problem with 'li' selectors #8

Closed lukaszkoziara closed 10 years ago

lukaszkoziara commented 10 years ago

There is a problem with getting 'li' selectors by index.

For example (pagination type - 'bs_full'): these line of code:

.insertBefore('li:eq(-2)', an[i])

get wrong 'li' element when you use 'li' element under datatables section on page.

javaguru-ch commented 10 years ago

Yes, I also run in that problem. Even worse, the labels "1", "2" and so on were inserted in the wrong ul-element (i.e. not the pagination ul!!). I adapted the code in order to make it work as follows:

.insertBefore($(an[i]).find('li:eq(-2)'))

nullivex commented 10 years ago

Ran into this as well had to switch back to bs_normal to solve it.