initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:53:46 +10:00
parent 8f9c36d1f5
commit 9552652292
693 changed files with 86806 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
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>No updates available</strong>");
}
$('#block_updatenotifier').show();
} else {
$('#block_updatenotifier').hide();
}
}