Fix off-by-one one the number of orgs to display

lektura
Vincent Lequertier 2018-03-22 16:42:46 +01:00
parent 8b8b603b00
commit c4c434194b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ function selectOrgType(type) {
}
// Hide the 'expand' arrow if there is no need for it
if (countOrgsToDisplay(li_orgs, type) < 27) {
if (countOrgsToDisplay(li_orgs, type) < 28) {
document.getElementsByClassName('expand')[0].style.visibility = 'hidden';
} else {
document.getElementsByClassName('expand')[0].style.visibility = 'visible';