From e153452b81e32b99a17b5f947ba2d98e37ffda07 Mon Sep 17 00:00:00 2001 From: nac26 Date: Wed, 26 Jan 2011 21:58:48 +0000 Subject: [PATCH] NIHVIVO-1073 Ensured the pagination event listener is not called until both pagination navs have been added to the DOM. --- webapp/web/js/menupage/browseByVClass.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webapp/web/js/menupage/browseByVClass.js b/webapp/web/js/menupage/browseByVClass.js index 74e3acfff..10c1c469f 100644 --- a/webapp/web/js/menupage/browseByVClass.js +++ b/webapp/web/js/menupage/browseByVClass.js @@ -118,8 +118,9 @@ var browseByVClass = { }) pagination += ''; - // 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);