diff --git a/pandora_console/include/class/SnmpConsole.class.php b/pandora_console/include/class/SnmpConsole.class.php
index 1d1a598bc7..aa90626378 100644
--- a/pandora_console/include/class/SnmpConsole.class.php
+++ b/pandora_console/include/class/SnmpConsole.class.php
@@ -519,6 +519,8 @@ class SnmpConsole extends HTML
$legend .= '';
$legend .= '';
+ echo '
';
+
ui_toggle($legend, __('Legend'));
// Load own javascript file.
@@ -1331,17 +1333,8 @@ class SnmpConsole extends HTML
* Show more information
*/
function toggleVisibleExtendedInfo(id, position) {
- // Show all "Show more"
- $('[id^=img_]').each(function() {
- $(this).show();
- });
- // Hide all "Hide details"
- $('[id^=img_hide_]').each(function() {
- $(this).hide();
- });
var status = $('#eye_'+id).attr('data-show');
if(status == "show"){
- $('tr[id^=show_]').remove()
$.ajax({
method: 'get',
url: '',
@@ -1360,14 +1353,14 @@ class SnmpConsole extends HTML
datatype: "json",
success: function(data) {
let trap = JSON.parse(data);
- var tr = $('#snmp_console tr').eq(position+1);
+ var tr = $('#snmp_console tr:not([id^="show_"])').eq(position+1);
// Count.
if ($('#filter_group_by').val() == 1) {
let labelCount = '