From c4c434194b00e93b4c50a3a507e6573fbebdee4b Mon Sep 17 00:00:00 2001 From: Vincent Lequertier Date: Thu, 22 Mar 2018 16:42:46 +0100 Subject: [PATCH] Fix off-by-one one the number of orgs to display --- site/static/js/filter_orgs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/static/js/filter_orgs.js b/site/static/js/filter_orgs.js index 682af8e..7d4079a 100644 --- a/site/static/js/filter_orgs.js +++ b/site/static/js/filter_orgs.js @@ -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';