Handler for stopped AJAX requests
This commit is contained in:
parent
2edd575767
commit
3c5cd76d26
|
@ -249,7 +249,11 @@ function ajax(url, callback, data) {
|
||||||
if (title) {
|
if (title) {
|
||||||
document.title = decodeURIComponent(title);
|
document.title = decodeURIComponent(title);
|
||||||
}
|
}
|
||||||
callback(xmlhttp.responseText);
|
if (xmlhttp.status) {
|
||||||
|
callback(xmlhttp.responseText);
|
||||||
|
} else {
|
||||||
|
setHtml('loader', '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
xmlhttp.send(data);
|
xmlhttp.send(data);
|
||||||
|
|
Loading…
Reference in a new issue