[go: nahoru, domu]

Skip to content

Commit

Permalink
Remove duplicite error handler
Browse files Browse the repository at this point in the history
There is already ajaxError in js/ajax.js, we can do handling there.

Issue #13130

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Apr 5, 2017
1 parent f5655f4 commit a079a55
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
});

Expand Down

0 comments on commit a079a55

Please sign in to comment.