Brian Read c8ce77259d * Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004]
- Upgrade to phpsysinfo 3.4.4
- Add code to delete inline styles and add css to make it look better.
- version saved / built uses the static version, which means no drops downs and choices.
2025-05-14 16:14:01 +01:00

28 lines
899 B
JavaScript

function renderPlugin_pingtest(data) {
var directives = {
PingTime: {
html: function () {
return ((this.PingTime === "lost") ? genlang(4, 'pingtest') : this.PingTime + String.fromCharCode(160) + "ms");
}
}
};
if (data.Plugins.Plugin_PingTest !== undefined) {
var psitems = items(data.Plugins.Plugin_PingTest.Ping);
if (psitems.length > 0) {
var pt_memory = [];
pt_memory.push_attrs(psitems);
$('#pingtest-data').render(pt_memory, directives);
$('#pingtest_Address').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#pingtest_Address')[0], []);
$('#block_pingtest').show();
} else {
$('#block_pingtest').hide();
}
} else {
$('#block_pingtest').hide();
}
}