mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Handler for stopped AJAX requests
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user