From 8b1e862c3cd52a5601052a0038a7e996380d66da Mon Sep 17 00:00:00 2001 From: Peter Edmond Date: Mon, 16 Jun 2025 19:14:32 +0100 Subject: [PATCH] Added extra logging to the drawbar function --- drawbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drawbar.js b/drawbar.js index 11a137c..da50dfb 100644 --- a/drawbar.js +++ b/drawbar.js @@ -289,6 +289,8 @@ function doBarData(id,qid, survey, Q1=0, Q2=0, Q3=0 ) { formData.append('Q2', Q2); formData.append('Q3', Q3); + console.log("Selectors:",Q1,Q2,Q3); + // Send the form data using fetch fetch('get_qid_counts.php', { method: 'POST', @@ -312,7 +314,7 @@ function doBarData(id,qid, survey, Q1=0, Q2=0, Q3=0 ) { const total = Object.values(bardata).reduce((sum, value) => sum + value, 0); //console.log(total); document.getElementById("record_no").textContent = total; - if (total < 9){ + if (total < 8){ return; } drawBar(id,bardata);