From deceac5f0513d68a4078095d6c24d1026dd91fcd Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Wed, 26 Apr 2017 18:39:23 -0500 Subject: [PATCH] Add tbody's to make styles work --- webui/assets/main.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/webui/assets/main.js b/webui/assets/main.js index 75c5d0e14..fcdd7cf4e 100644 --- a/webui/assets/main.js +++ b/webui/assets/main.js @@ -274,9 +274,11 @@ function render_status(status) { var nodes = status["status"]["Nodes"] table = document.createElement("table") + tbody = document.createElement("tbody") + table.appendChild(tbody) var caption = document.createElement("caption") caption.innerHTML = "(" + nodes.length + ")" - table.appendChild(caption) + tbody.appendChild(caption) var header = document.createElement('tr') markup = `Host @@ -288,7 +290,7 @@ function render_status(status) { markup = `${nodes[n]["Host"]} ${nodes[n]["State"]}` row.innerHTML = markup - table.appendChild(row) + tbody.appendChild(row) } nodes_div.appendChild(table) @@ -301,6 +303,8 @@ function render_status(status) { var indexes = nodes[0]["Indexes"] // TODO currently comes from only node 0 for(var n=0; nCache Type Cache Size` header.innerHTML = markup - table.appendChild(header) + tbody.appendChild(header) var frames = indexes[n]["Frames"] for(var m=0; m${frames[m]["Meta"]["CacheType"]} ${frames[m]["Meta"]["CacheSize"]}` row.innerHTML = markup - table.appendChild(row) + tbody.appendChild(row) } indexes_div.appendChild(table) }