aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index c0bc23f..6e63ed3 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -72,9 +72,11 @@ function fetchHTMLTable(apiEndPoint) {
for (var i=0; i<data.length;i++) {
htmlString=htmlString+"<tr><td><a href='#' onclick='fetchSEQByLocation(\""+data[i]["key"]+"\");'>"+data[i]["label"]+"</a></td><td>"+data[i]["count"]+"<td></tr>"
}
-*/
+ */
for (var i=0; i<data.length;i++) {
- htmlString=htmlString+"<tr><td>"+data[i]["label"]+"</td><td>"+data[i]["count"]+"<td></tr>"
+ let url = data[i]["key"];
+ let label = data[i]["label"];
+ htmlString=htmlString+"<tr><td><a href=\""+url+"\">"+label+"</a></td><td>"+data[i]["count"]+"<td></tr>"
}
htmlString=htmlString+"</table>"
@@ -143,10 +145,6 @@ let fetchMap = () => {
updateMapMarkers();
};
-let fetchSEQCountbyLocation = () => {
- fetchHTMLTable("/api/getSEQCountbyLocation");
-};
-
let fetchSEQByLocation = () => {
console.log("Missing - set parameter for request, retrieve data")
};