Adjusted comments to fill if the calculated number of respondents in the cohort is greater than 7 rather than if the number of comments is more than 7. Note that this is done client side so is technically unsafe!

This commit is contained in:
Peter Edmond 2025-06-03 15:51:53 +01:00
parent bc88d41831
commit 8ceb409dc3

View File

@ -26,6 +26,12 @@ function doComments(id,qid) {
.then(data => { .then(data => {
// Output result // Output result
//console.log(data); //console.log(data);
const recordNo = parseInt(document.getElementById('record_no').textContent, 10);
if (recordNo <8){
return;
}
const parsed = JSON.parse(data); const parsed = JSON.parse(data);
const div = document.getElementById(id); const div = document.getElementById(id);