From 1c4949020b9655aa8e7b5d8015438065d19a4ea3 Mon Sep 17 00:00:00 2001 From: Kristjan Komlosi Date: Tue, 14 Jul 2020 10:01:13 +0200 Subject: [PATCH] change element IDs for irradiance values and table rows --- terahz/static/frontend.js | 2 +- terahz/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terahz/static/frontend.js b/terahz/static/frontend.js index 1ff9518..69b7cf1 100644 --- a/terahz/static/frontend.js +++ b/terahz/static/frontend.js @@ -36,7 +36,7 @@ function graphSpectralData (obj, dom) { function fillTableData (obj) { // fill the obj data into HTML tables Object.keys(obj[0]) - .forEach((element) => { $('#' + element).text(obj[0][element]); }); + .forEach((element) => { $('#' + element + '_value').text(obj[0][element]); }); $('#lx').text(obj[1]); $('#uva').text(obj[2][0]); $('#uvb').text(obj[2][1]); diff --git a/terahz/templates/index.html b/terahz/templates/index.html index c7572eb..c9f971e 100644 --- a/terahz/templates/index.html +++ b/terahz/templates/index.html @@ -56,7 +56,7 @@ {{wld[band]}} - + {{irr}}