]>
Commit | Line | Data |
---|---|---|
f464053e | 1 | $(function () { |
e9c3b052 JF |
2 | if (issues == null) { |
3 | $(".issues").remove(); | |
f464053e | 4 | |
e9c3b052 JF |
5 | var downloading = sizes[0]; |
6 | if (downloading == "0.0 B") | |
7 | $(".downloading").remove(); | |
8 | else | |
9 | $("#downloading").html($.xml(downloading)); | |
f99f86e2 | 10 | |
e9c3b052 JF |
11 | var resuming = sizes[1]; |
12 | if (resuming == "0.0 B") | |
13 | $(".resuming").remove(); | |
14 | else | |
f464053e | 15 | $("#resuming").html($.xml(resuming)); |
e9c3b052 | 16 | } else for (var i = 0; i != issues.length; ++i) { |
6932575e | 17 | document.title = cydia.localize("CANNOT_COMPLY"); |
f99f86e2 | 18 | |
2064d251 | 19 | $(".queue").remove(); |
83105e6e | 20 | |
e9c3b052 | 21 | $("._issues").remove(); |
f464053e | 22 | |
e9c3b052 JF |
23 | var issue = issues[i]; |
24 | ||
25 | $("#issues").append( | |
04700693 | 26 | "<label style=\"color: #704d4d\">" + $.xml(issue[0]) + "</label>" + |
e9c3b052 JF |
27 | "<fieldset style=\"background-color: #dddddd\" class=\"clearfix\" id=\"i" + i + "\"></fieldset>" |
28 | ); | |
29 | ||
30 | for (var j = 1; j != issue.length; ++j) { | |
31 | var entry = issue[j]; | |
32 | var type = entry[0]; | |
33 | if (type == "PreDepends") | |
34 | type = "Depends"; | |
e4765783 JF |
35 | var version = entry[1]; |
36 | if (entry.length >= 4) | |
37 | version += " " + entry[3]; | |
b456f1c9 | 38 | $("#i" + i).append("<div class=\"clearfix\"><div>" + |
04700693 | 39 | "<label>" + $.xml(type) + "</label>" + |
e4765783 | 40 | "<label>" + $.xml(version) + "</label>" + |
6e673d99 | 41 | "</div></div>"); |
e9c3b052 JF |
42 | } |
43 | } | |
f464053e JF |
44 | |
45 | var keys = [ | |
6932575e JF |
46 | "INSTALL", |
47 | "REINSTALL", | |
48 | "UPGRADE", | |
49 | "DOWNGRADE", | |
50 | "REMOVE" | |
f464053e JF |
51 | ]; |
52 | ||
53 | for (var i = 0; i != 5; ++i) { | |
54 | var list = changes[i]; | |
55 | var length = list.length; | |
56 | ||
57 | if (length != 0) { | |
6e673d99 | 58 | $("#modifications").append("<div class=\"clearfix\"><div>" + |
6932575e | 59 | "<label>" + cydia.localize($.xml(keys[i])) + "</label>" + |
04700693 | 60 | "<label id=\"c" + i + "\"></label>" + |
6e673d99 | 61 | "</div></div>"); |
f464053e JF |
62 | |
63 | var value = ""; | |
64 | for (var j = 0; j != length; ++j) { | |
65 | if (j != 0) | |
66 | value += "<br/>"; | |
67 | value += $.xml(list[j]); | |
68 | } | |
69 | ||
e9c3b052 | 70 | $("#c" + i).html(value); |
f464053e JF |
71 | } |
72 | } | |
73 | }); |