Remove duplicite error handler
There is already ajaxError in js/ajax.js, we can do handling there. Issue #13130 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
f5655f4429
commit
a079a55282
@ -198,11 +198,6 @@ var PMA_console = {
|
||||
} catch (e) {
|
||||
console.trace();
|
||||
console.log("Failed to parse JSON: " + e.message);
|
||||
if (AJAX.xhr && AJAX.xhr.status === 0 && AJAX.xhr.statusText !== 'abort') {
|
||||
PMA_ajaxShowMessage($('<div />',{'class':'error','html':PMA_messages.strRequestFailed+' ( '+escapeHtml(AJAX.xhr.statusText)+' )'}));
|
||||
AJAX.active = false;
|
||||
AJAX.xhr = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user