From b6170b6f9d4860784936adddad349565eb74cab4 Mon Sep 17 00:00:00 2001 From: nac26 Date: Sat, 5 Feb 2011 00:25:04 +0000 Subject: [PATCH] NIHVIVO-2033 Added test in emptyResultSet() to handle the rare (but possible) occurrence where a class is rendered in the list due to having an individual count > 0, but for some reason the Search Index has not been rebuilt, so those individuals are not returned by the JSON service. --- webapp/web/js/menupage/browseByVClass.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/web/js/menupage/browseByVClass.js b/webapp/web/js/menupage/browseByVClass.js index 2fbd96624..9a6dacaea 100644 --- a/webapp/web/js/menupage/browseByVClass.js +++ b/webapp/web/js/menupage/browseByVClass.js @@ -231,7 +231,11 @@ var browseByVClass = { this.wipeSlate(); this.selectedAlpha(alpha); - nothingToSeeHere = '

There are no '+ vclass.name +' individuals whose name starts with '+ alpha.toUpperCase() +'.

Please try another letter or browse all.

'; + if ( alpha != "all" ) { + nothingToSeeHere = '

There are no '+ vclass.name +' individuals whose name starts with '+ alpha.toUpperCase() +'.

Please try another letter or browse all.

'; + } else { + nothingToSeeHere = '

There are no '+ vclass.name +' individuals in the system.

Please select another class from the list.

'; + } browseByVClass.individualsContainer.prepend(nothingToSeeHere); } };