NIHVIVO-1997 Removed pie charts and class group browse from menu pages due to current limitations of individual counts for classes. This should all be brought back from the dead in the future once we implement counts based on most specific type.

This commit is contained in:
nac26 2011-02-03 03:06:02 +00:00
parent c2e17ec638
commit 7a0a2655ed
7 changed files with 15 additions and 342 deletions

View file

@ -87,7 +87,8 @@ var browseByVClass = {
scroll = true;
}
// First wipe currently displayed individuals and existing pagination
// First wipe currently displayed class heading, individuals, and existing pagination
$('h3.selected-class').remove();
this.individualsInVClass.empty();
$('nav.pagination').remove();
@ -98,6 +99,9 @@ var browseByVClass = {
browseByVClass.pagination(pages, page);
}
selectedClassHeading = '<h3 class="selected-class">'+ results.vclass.name +'</h3>';
browseByVClass.individualsContainer.prepend(selectedClassHeading);
$.each(results.individuals, function(i, item) {
label = results.individuals[i].label;
moniker = results.individuals[i].moniker;
@ -127,9 +131,9 @@ var browseByVClass = {
browseByVClass.selectedVClass(results.vclass.URI);
browseByVClass.selectedAlpha(alpha);
// Scroll to the top of the browse section unless told otherwise
// Scroll to #menupage-intro page unless told otherwise
if ( scroll != false ) {
$.scrollTo('#browse-by', 500);
$.scrollTo('#menupage-intro', 500);
}
});
},