clear tables when closing current search

pull/34/head
Zlatin Balevsky 2019-12-16 19:07:01 +00:00
parent 11edb2cb3c
commit 5f7e949310
1 changed files with 7 additions and 0 deletions

View File

@ -816,6 +816,13 @@ function stopSearch(searchUUID) {
var xmlhttp = new XMLHttpRequest()
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
if (searchUUID == uuid) {
uuid = null
var element = document.getElementById("topTable" + refreshType)
element.innerHTML = ""
element = document.getElementById("bottomTable" + refreshType)
element.innerHTML = ""
}
refreshStatus()
}
}