From 61fb2e102b4e4e4710a2c2bbbbecbc698d101701 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 22 Sep 2021 16:39:34 +0200 Subject: [PATCH] #7950 Fixed last_contact 3 --- pandora_console/operation/agentes/log_sources_status.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/operation/agentes/log_sources_status.php b/pandora_console/operation/agentes/log_sources_status.php index f9388a206c..9e4dd50518 100644 --- a/pandora_console/operation/agentes/log_sources_status.php +++ b/pandora_console/operation/agentes/log_sources_status.php @@ -32,6 +32,10 @@ function get_last_contact(source, agent_id) { type: "POST", url: "ajax.php", success: function (data) { + var td = $(`#img-${source}`).parent(); + td.empty(); + td.html(data); + td.css('padding-left', '12px'); } }); } @@ -73,6 +77,7 @@ foreach ($logs as $log) { 'images/spinner.gif', true, [ + 'id' => 'img-'.$log['source'], 'border' => '0', 'width' => '20px', 'heigth' => '20px',