mirror of
https://github.com/s00500/ESPUI.git
synced 2025-07-04 06:10:18 +00:00
Fix error in graph HTML output
This commit is contained in:
4
data/js/controls.js
vendored
4
data/js/controls.js
vendored
@ -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 "<span id='l" + id + "' " + elementStyle +
|
||||
|
Reference in New Issue
Block a user