Removed unreachable host from events responses

This commit is contained in:
fermin831 2018-04-25 19:04:52 +02:00
parent ec61441587
commit 5429ebb8de
1 changed files with 2 additions and 7 deletions

View File

@ -361,13 +361,8 @@ function perform_response(target, response_id) {
timeout: 10000,
dataType: 'html',
success: function (data) {
if (data == '') {
$('#response_out').html('<i>Unreachable host</i>');
}
else {
var out = data.replace(/[\n|\r]/g, "<br>");
$('#response_out').html(out);
}
var out = data.replace(/[\n|\r]/g, "<br>");
$('#response_out').html(out);
$('#response_loading_command').hide();
$('#re_exec_command').show();
}