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