Updated test for publications vs. publication just in case we end up displaying this text down the road even when there are no publications
This commit is contained in:
parent
5030119bae
commit
094a245c36
1 changed files with 7 additions and 7 deletions
|
@ -71,10 +71,10 @@
|
|||
|
||||
var totalPubs = parseInt(renderedShortSparks) + parseInt(${sparklineVO.unknownYearPublications});
|
||||
|
||||
if ( totalPubs > 1 ) {
|
||||
var pubDisplay = "publications";
|
||||
} else {
|
||||
if ( totalPubs == 1 ) {
|
||||
var pubDisplay = "publication";
|
||||
} else {
|
||||
var pubDisplay = "publications";
|
||||
}
|
||||
|
||||
$('#${sparklineContainerID} td.sparkline_number').text(totalPubs).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> "+ pubDisplay +"<br/></span>");
|
||||
|
@ -90,10 +90,10 @@
|
|||
var renderedSparks = ${sparklineVO.renderedSparks};
|
||||
var totalPubs = parseInt(renderedSparks) + parseInt(${sparklineVO.unkownYearPublications});
|
||||
|
||||
if ( totalPubs > 1 ) {
|
||||
var pubDisplay = "publications";
|
||||
} else {
|
||||
if ( totalPubs == 1 ) {
|
||||
var pubDisplay = "publication";
|
||||
} else {
|
||||
var pubDisplay = "publications";
|
||||
}
|
||||
|
||||
$('#${sparklineContainerID} td.sparkline_number').text(totalPubs).css("font-weight", "bold").attr("class", "grey").append("<span style='color: #2485AE;'> "+ pubDisplay +"<br/></span>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue