clear hashing span when not hashing

pull/34/head
Zlatin Balevsky 2019-12-06 17:20:41 +00:00
parent e57e513ca1
commit 71685d2052
1 changed files with 3 additions and 2 deletions

View File

@ -17,11 +17,12 @@ function refreshStatus() {
var countSpan = document.getElementById("count")
countSpan.innerHTML = count
var hashingSpan = document.getElementById("hashing")
var hashing = xmlDoc.getElementsByTagName("Hashing")
if (hashing != null && hashing.length == 1) {
var hashingSpan = document.getElementById("hashing")
hashingSpan.innerHTML = "Hashing "+hashing[0].childNodes[0].nodeValue
}
} else
hashingSpan.innerHTML = "";
}
}
xmlhttp.open("GET", "/MuWire/Files?section=status", true)