blob: 579c3f5fef442c026032ab34f6ab8a5da7ee1b6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
$(function () {
var downloading = sizes[0];
if (downloading == "0.0B")
$(".downloading").remove();
else
$("#downloading").html($.xml(downloading));
var resuming = sizes[1];
if (resuming == "0.0B")
$(".resuming").remove();
else
$("#resuming").html($.xml(resuming));
var size = sizes[2];
var negative;
if (size.charAt(0) != '-')
negative = false;
else {
negative = true;
size = size.substr(1);
}
$("#disk-key").html(negative ? "Disk Freeing" : "Disk Using");
$("#disk-value").html($.xml(size));
var keys = [
"Install",
"Reinstall",
"Upgrade",
"Downgrade",
"Remove"
];
for (var i = 0; i != 5; ++i) {
var list = changes[i];
var length = list.length;
if (length != 0) {
$("#modifications").append("<div>" +
"<label>" + keys[i] + "</label>" +
"<div id=\"i" + i + "\"></div>" +
"</div>");
var value = "";
for (var j = 0; j != length; ++j) {
if (j != 0)
value += "<br/>";
value += $.xml(list[j]);
}
$("#i" + i).html(value);
}
}
});
|