2781 |
rexy |
1 |
function renderPlugin_updatenotifier(data) {
|
|
|
2 |
|
|
|
3 |
var directives = {
|
|
|
4 |
updateNotifierNbPackages: {
|
|
|
5 |
text: function () {
|
|
|
6 |
return this.packages;
|
|
|
7 |
}
|
|
|
8 |
},
|
|
|
9 |
updateNotifierNbSecPackages: {
|
|
|
10 |
text: function () {
|
|
|
11 |
return this.security;
|
|
|
12 |
}
|
|
|
13 |
}
|
|
|
14 |
};
|
|
|
15 |
if ((data.Plugins.Plugin_UpdateNotifier !== undefined) && (data.Plugins.Plugin_UpdateNotifier.UpdateNotifier !== undefined)){
|
|
|
16 |
$('#updatenotifier').render(data.Plugins.Plugin_UpdateNotifier.UpdateNotifier, directives);
|
|
|
17 |
if ((data.Plugins.Plugin_UpdateNotifier.UpdateNotifier.packages <= 0) &&
|
|
|
18 |
(data.Plugins.Plugin_UpdateNotifier.UpdateNotifier.security <= 0) ) {
|
|
|
19 |
$("#updatenotifier-info").html("<strong>"+genlang(5, 'updatenotifier')+"</strong>");
|
|
|
20 |
}
|
|
|
21 |
$('#block_updatenotifier').show();
|
|
|
22 |
} else {
|
|
|
23 |
$('#block_updatenotifier').hide();
|
|
|
24 |
}
|
|
|
25 |
}
|