From a079a55282b95f701ec315591149512cc29930b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 5 Apr 2017 09:19:58 +0200 Subject: [PATCH] Remove duplicite error handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is already ajaxError in js/ajax.js, we can do handling there. Issue #13130 Signed-off-by: Michal Čihař --- js/console.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/console.js b/js/console.js index e70897e357..839abef7ff 100644 --- a/js/console.js +++ b/js/console.js @@ -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($('
',{'class':'error','html':PMA_messages.strRequestFailed+' ( '+escapeHtml(AJAX.xhr.statusText)+' )'})); - AJAX.active = false; - AJAX.xhr = null; - } } });