- 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.
33 lines
960 B
JavaScript
33 lines
960 B
JavaScript
function renderPlugin_psstatus(data) {
|
|
|
|
var directives = {
|
|
Status1: {
|
|
text: function () {
|
|
return (this.Status === "1") ? "ON" : "";
|
|
}
|
|
},
|
|
Status0: {
|
|
text: function () {
|
|
return (this.Status === "1") ? "" : "OFF";
|
|
}
|
|
}
|
|
};
|
|
|
|
if (data.Plugins.Plugin_PSStatus !== undefined) {
|
|
var psitems = items(data.Plugins.Plugin_PSStatus.Process);
|
|
if (psitems.length > 0) {
|
|
var ps_memory = [];
|
|
ps_memory.push_attrs(psitems);
|
|
$('#psstatus-data').render(ps_memory, directives);
|
|
$('#psstatus_Name').removeClass("sorttable_sorted"); // reset sort order
|
|
sorttable.innerSortFunction.apply($('#psstatus_Name')[0], []);
|
|
|
|
$('#block_psstatus').show();
|
|
} else {
|
|
$('#block_psstatus').hide();
|
|
}
|
|
} else {
|
|
$('#block_psstatus').hide();
|
|
}
|
|
}
|