Commit ad007553 authored by Geoff Simmons's avatar Geoff Simmons

govarnishstat JS bugfix.

parent 5fdedbd5
......@@ -97,6 +97,7 @@ table.hitrate {
var addr = "ws://" + location.hostname + ":" + location.port
var metadata = {}
var tbody
var rows
var colClassList = []
var show0 = false
var show0_checkbox
......@@ -277,7 +278,6 @@ function getHitrate() {
}
function resetVisibility() {
var rows = tbody.rows
for (i = 0; i < rows.length; i++) {
var raw = rows[i].getAttribute("data-raw")
if (raw == "0" && !show0) {
......@@ -332,8 +332,6 @@ function toggleShow0() {
function toggleFormatting() {
formatting = !formatting
for (i = 0; i < tbody.rows.length; i++)
format(tbody.rows[i])
}
function keyUp(evt) {
......@@ -378,6 +376,7 @@ function keyUp(evt) {
window.onload = function() {
var tbl = document.getElementById("statsTbl")
tbody = tbl.getElementsByTagName('tbody')[0];
rows = tbody.rows
var headrow = document.getElementById("headrow")
for (i = 0; i < headrow.cells.length; i++)
colClassList[i] = headrow.cells[i].classList
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment