Blue background & Datatable fix

This commit is contained in:
Pablo Aragon 2023-03-29 17:09:41 +02:00
parent 168d03eecc
commit f26e70630a
2 changed files with 4 additions and 3 deletions

View File

@ -4070,15 +4070,16 @@ function ui_print_datatable(array $parameters)
}"; }";
} }
$js .= '});'; $js .= '$("table#'.$table_id.'").removeClass("invisible");
});';
$js .= ' $js .= '
$(function() { $(function() {
$(document).on("preInit.dt", function (ev, settings) { $(document).on("preInit.dt", function (ev, settings) {
// $("table#'.$table_id.'").hide();
$("div.dataTables_length").hide(); $("div.dataTables_length").hide();
$("div.dt-buttons").hide(); $("div.dt-buttons").hide();
}); });
}); });
'; ';
$js .= '</script>'; $js .= '</script>';

View File

@ -192,7 +192,7 @@ echo '<table width="100%" class="info_table">';
echo "<span id='sumary' class='yellow_background'>".$total_agent_warning.'%</span>'; echo "<span id='sumary' class='yellow_background'>".$total_agent_warning.'%</span>';
echo "<span id='sumary' class='green_background'>".$total_agent_ok.'%</span>'; echo "<span id='sumary' class='green_background'>".$total_agent_ok.'%</span>';
echo "<span id='sumary' class='bg_B2B2B2'>".$total_agent_unknown.'%</span>'; echo "<span id='sumary' class='bg_B2B2B2'>".$total_agent_unknown.'%</span>';
echo "<span id='sumary' class='blue'>".$total_not_init.'%</span>'; echo "<span id='sumary' class='bg_4a83f3'>".$total_not_init.'%</span>';
echo '</td>'; echo '</td>';
echo "<td align='center'>"; echo "<td align='center'>";
echo "<span id='sumary' class='red_background'>".$total_critical.'%</span>'; echo "<span id='sumary' class='red_background'>".$total_critical.'%</span>';