From c113b9cda701b97d2265776e32853afd96575f2d Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Mon, 27 May 2019 17:52:25 +0200 Subject: [PATCH] +cluster table clear before updating --- src/main/webapp/js/clusters.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/webapp/js/clusters.js b/src/main/webapp/js/clusters.js index f6799b3..f0dfd22 100644 --- a/src/main/webapp/js/clusters.js +++ b/src/main/webapp/js/clusters.js @@ -13,6 +13,11 @@ function updateClusters(id) { } function drawClusterTable(){ + let table = document.getElementById("cluster_table"); + while(table.hasChildNodes()){ + table.removeChild(table.firstChild); + } + let row = $(""); row.append(""); row.append("");