+cluster table clear before updating

This commit is contained in:
Julian Hinxlage 2019-05-27 17:52:25 +02:00
parent 2f36e1a4d3
commit c113b9cda7
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,11 @@ function updateClusters(id) {
}
function drawClusterTable(){
let table = document.getElementById("cluster_table");
while(table.hasChildNodes()){
table.removeChild(table.firstChild);
}
let row = $("<thead>");
row.append("<tr>");
row.append("<td></td>");