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:
Michal Čihař 2017-04-05 09:19:58 +02:00
parent f5655f4429
commit a079a55282

View File

@ -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;
}
}
});