mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Adds bootstrap-5.0.0-beta3-dist Adds bootstrap-5.0.0 Updates bootstrap-5.0.0-beta3-dist to bootstrap-5.0.0-dist initial migration to bs v5 porting to bs5 improvements on dropdown menu filter fixed host map dropdown removed excessive padding fix button toggle re-add blog news removed text decoration for links fix button layout (#5348) remove underscore from href (#5347)
39 lines
828 B
JavaScript
39 lines
828 B
JavaScript
$(function () {
|
|
const TABLE_DATA_REFRESH = 15000;
|
|
|
|
let dtConfig = DataTableUtils.getStdDatatableConfig([
|
|
{
|
|
text: '<i class="fas fa-sync"></i>',
|
|
className: 'btn-link',
|
|
action: () => {
|
|
$flowdevicesList.ajax.reload();
|
|
}
|
|
}
|
|
]);
|
|
dtConfig = DataTableUtils.setAjaxConfig(dtConfig, `${http_prefix}/lua/pro/rest/v1/get/flowdevices/stats.lua`, 'rsp');
|
|
dtConfig = DataTableUtils.extendConfig(dtConfig, {
|
|
columns: [
|
|
{
|
|
data: 'column_ip'
|
|
},
|
|
{
|
|
data: 'column_chart',
|
|
className: "text-center",
|
|
width: "15%",
|
|
},
|
|
{
|
|
data: 'column_name'
|
|
},
|
|
{
|
|
data: 'column_descr'
|
|
},
|
|
{
|
|
data: 'column_location'
|
|
},
|
|
],
|
|
initComplete: function (settings, json) {
|
|
}
|
|
});
|
|
|
|
const $flowdevicesList = $(`table#flowdevices-list`).DataTable(dtConfig);
|
|
});
|