diff --git a/atoms/js/onload.js b/atoms/js/onload.js index 5a8ee4b..29458af 100644 --- a/atoms/js/onload.js +++ b/atoms/js/onload.js @@ -134,7 +134,12 @@ function createGradientLegend() { var title = document.createElement("h1"); title.className = "tabletitle"; - title.innerHTML = choicesDisplay[1][index] + " (" + units[index] + ")"; + if (units[index] != "") { + var end = choicesDisplay[1][index] + " (" + units[index] + ")"; + } else { + var end = choicesDisplay[1][index]; + } + title.innerHTML = end; get("titleholder").appendChild(title); }