From 5429ebb8de615545df169ab8d5af9ff8f3d4e94f Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 25 Apr 2018 19:04:52 +0200 Subject: [PATCH] Removed unreachable host from events responses --- pandora_console/include/javascript/pandora_events.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index bd9b6cfcb6..16d2ad4e0c 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -361,13 +361,8 @@ function perform_response(target, response_id) { timeout: 10000, dataType: 'html', success: function (data) { - if (data == '') { - $('#response_out').html('Unreachable host'); - } - else { - var out = data.replace(/[\n|\r]/g, "
"); - $('#response_out').html(out); - } + var out = data.replace(/[\n|\r]/g, "
"); + $('#response_out').html(out); $('#response_loading_command').hide(); $('#re_exec_command').show(); }