Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2780 → Rev 2781

/web/acc/phpsysinfo/plugins/updatenotifier/js/updatenotifier_bootstrap.js
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>"+genlang(5, 'updatenotifier')+"</strong>");
}
$('#block_updatenotifier').show();
} else {
$('#block_updatenotifier').hide();
}
}