Fixed index error that broke pagination

pull/21/head
Meiko Udras 12 years ago
parent 43aecef6fe
commit cb7dcdee49

@ -119,7 +119,7 @@ $.extend( $.fn.dataTableExt.oPagination, {
$('li:gt(0)', an[i]).filter(':not(:last)').remove(); $('li:gt(0)', an[i]).filter(':not(:last)').remove();
// Add the new list items and their event handlers // Add the new list items and their event handlers
$.each( pages, function( i, page ) { $.each( pages, function( ii, page ) {
klass = page === null ? 'unavailable' : klass = page === null ? 'unavailable' :
page === oPaging.iPage ? 'current' : ''; page === oPaging.iPage ? 'current' : '';
$('<li class="'+klass+'"><a href="">'+(page===null? '&hellip;' : page+1)+'</a></li>') $('<li class="'+klass+'"><a href="">'+(page===null? '&hellip;' : page+1)+'</a></li>')

Loading…
Cancel
Save