NIHVIVO-1073 Ensured the pagination event listener is not called until both pagination navs have been added to the DOM.
This commit is contained in:
parent
65cf36c121
commit
e153452b81
1 changed files with 2 additions and 6 deletions
|
@ -118,8 +118,9 @@ var browseByVClass = {
|
|||
})
|
||||
pagination += '</ul>';
|
||||
|
||||
// Add the pagination above the list of individuals and call the listener
|
||||
// Add the pagination above and below the list of individuals and call the listener
|
||||
browseByVClass.individualsContainer.prepend(pagination);
|
||||
browseByVClass.individualsContainer.append(pagination);
|
||||
browseByVClass.paginationListener();
|
||||
}
|
||||
|
||||
|
@ -148,11 +149,6 @@ var browseByVClass = {
|
|||
browseByVClass.individualsInVClass.append(listItem);
|
||||
})
|
||||
|
||||
// Add the pagination below the list as well
|
||||
if ( results.pages.length ) {
|
||||
browseByVClass.individualsContainer.append(pagination);
|
||||
}
|
||||
|
||||
// set selected class, alpha and page
|
||||
browseByVClass.selectedVClass(results.vclass.URI);
|
||||
browseByVClass.selectedAlpha(alpha);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue