mirror of https://github.com/zlatinb/muwire
clear tables when closing current search
parent
11edb2cb3c
commit
5f7e949310
|
@ -816,6 +816,13 @@ function stopSearch(searchUUID) {
|
||||||
var xmlhttp = new XMLHttpRequest()
|
var xmlhttp = new XMLHttpRequest()
|
||||||
xmlhttp.onreadystatechange = function() {
|
xmlhttp.onreadystatechange = function() {
|
||||||
if (this.readyState == 4 && this.status == 200) {
|
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()
|
refreshStatus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue