From fed603e219e79461260490f76019e21a4d8e2e53 Mon Sep 17 00:00:00 2001 From: Ian Gray Date: Sat, 15 Jan 2022 15:13:28 +0000 Subject: [PATCH] Fix error in graph HTML output --- data/js/controls.js | 4 ++-- data/js/controls.min.js | 4 ++-- src/dataControlsJS.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/js/controls.js b/data/js/controls.js index 0b6e4d4..7a35af9 100644 --- a/data/js/controls.js +++ b/data/js/controls.js @@ -730,11 +730,11 @@ var addToHTML = function(data) { } else { //We are adding to an existing panel so we only need the HTML for the element var parent = $("#id" + data.parentControl); - parent.append(elementHTML(data.type, data.id, data.value, elementStyle)); + parent.append(elementHTML(data.type, data.id, data.value, data.label, elementStyle)); } } -var elementHTML = function(type, id, value, elementStyle) { +var elementHTML = function(type, id, value, label, elementStyle) { switch(type) { case UI_LABEL: return "
"+data.label+"

"+ elementHTML(data.type,data.id,data.value,elementStyle)+ "";break;case UI_SEPARATOR:html="
"+ "
"+data.label+"

";break;} -parent.append(html);}else{var parent=$("#id"+data.parentControl);parent.append(elementHTML(data.type,data.id,data.value,elementStyle));}} -var elementHTML=function(type,id,value,elementStyle){switch(type){case UI_LABEL:return""+value+"";case UI_BUTTON:return"