From 46b1ec1847dc1e3832a24aae1a69fc034a674575 Mon Sep 17 00:00:00 2001 From: Mats Bovin Date: Wed, 25 Sep 2024 14:34:20 +0200 Subject: [PATCH] Hide progress bar on collection page if no estimated specimens count --- grails-app/views/public/_progress.gsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grails-app/views/public/_progress.gsp b/grails-app/views/public/_progress.gsp index 7b8e251a..24f3edfa 100644 --- a/grails-app/views/public/_progress.gsp +++ b/grails-app/views/public/_progress.gsp @@ -33,8 +33,8 @@ function setPercentAgeNumbers(totalBiocacheRecords, totalRecords) { } setProgress(percent); } else { - // to update the speedo caption - setProgress(0); + // the progress bar doesn't make sense if there is no estimated speciemens count + $('#progress').hide(); } }