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:
parent
bc88d41831
commit
8ceb409dc3
@ -26,6 +26,12 @@ function doComments(id,qid) {
|
||||
.then(data => {
|
||||
// Output result
|
||||
//console.log(data);
|
||||
const recordNo = parseInt(document.getElementById('record_no').textContent, 10);
|
||||
if (recordNo <8){
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const parsed = JSON.parse(data);
|
||||
|
||||
const div = document.getElementById(id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user