Handler for stopped AJAX requests

This commit is contained in:
Jakub Vrana 2011-03-11 17:00:02 +01:00
parent 2edd575767
commit 3c5cd76d26

View file

@ -249,7 +249,11 @@ function ajax(url, callback, data) {
if (title) {
document.title = decodeURIComponent(title);
}
callback(xmlhttp.responseText);
if (xmlhttp.status) {
callback(xmlhttp.responseText);
} else {
setHtml('loader', '');
}
}
};
xmlhttp.send(data);