Open sawyerh opened 10 years ago
+1
It seems in the init function, pagingList is initialized by using the listContainer's id, which is not exist in that case. I use the listContainer element itself to setup the List object instead, which seem to work fine.
// setup the pagingList by using the element itself
pagingList = new List(list.listContainer, {
listClass: options.paginationClass || 'pagination',
item: "<li><a class='page' href='javascript:function Z(){Z=\"\"}Z()'></a></li>",
valueNames: ['page', 'dotted'],
searchClass: 'pagination-search-that-is-not-supposed-to-exist',
sortClass: 'pagination-sort-that-is-not-supposed-to-exist'
});
Safe to say this isn't getting fixed
+1, also faced with the same issue. Pagination plugin works ok when target list passed to List constructor as id string and does not working when target is passed as DOM element.
If the list container doesn't have an ID attribute, pagination will fail with the following error:
This works:
This doesn't work: