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

26 lines
947 B
JavaScript

function renderPlugin_updatenotifier(data) {
var directives = {
updateNotifierNbPackages: {
text: function () {
return this.packages;
}
},
updateNotifierNbSecPackages: {
text: function () {
return this.security;
}
}
};
if ((data.Plugins.Plugin_UpdateNotifier !== undefined) && (data.Plugins.Plugin_UpdateNotifier.UpdateNotifier !== undefined)){
$('#updatenotifier').render(data.Plugins.Plugin_UpdateNotifier.UpdateNotifier, directives);
if ((data.Plugins.Plugin_UpdateNotifier.UpdateNotifier.packages <= 0) &&
(data.Plugins.Plugin_UpdateNotifier.UpdateNotifier.security <= 0) ) {
$("#updatenotifier-info").html("<strong>"+genlang(5, 'updatenotifier')+"</strong>");
}
$('#block_updatenotifier').show();
} else {
$('#block_updatenotifier').hide();
}
}