summaryrefslogtreecommitdiff
path: root/MobileCydia.app/confirm.js
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-12-11 23:11:07 -0800
committerGrant Paul <chpwn@chpwn.com>2010-12-11 23:11:07 -0800
commita2bd7a7305fc62b7e218cb206b56f35d3a880f28 (patch)
tree241973814262e39c60f235ef59e0c6c491ddd45f /MobileCydia.app/confirm.js
parentdd5f81612e2906f740d09566145cd1be72a4c227 (diff)
Fixed empty Statistics on confirm page if all statistics have been removed.
Diffstat (limited to 'MobileCydia.app/confirm.js')
-rw-r--r--MobileCydia.app/confirm.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/MobileCydia.app/confirm.js b/MobileCydia.app/confirm.js
index efffdc4..4c74b43 100644
--- a/MobileCydia.app/confirm.js
+++ b/MobileCydia.app/confirm.js
@@ -1,18 +1,25 @@
$(function () {
if (issues == null) {
$(".issues").remove();
+ var removed = 0;
var downloading = sizes[0];
- if (downloading == "0.0 B")
+ if (downloading == "0.0 B") {
$(".downloading").remove();
- else
- $("#downloading").html($.xml(downloading));
+ removed += 1;
+ } else {
+ $("#downloading").html($.xml(downloading));
+ }
var resuming = sizes[1];
- if (resuming == "0.0 B")
+ if (resuming == "0.0 B") {
$(".resuming").remove();
- else
- $("#resuming").html($.xml(resuming));
+ removed += 1;
+ } else {
+ $("#resuming").html($.xml(resuming));
+ }
+
+ if (removed >= 2) $(".statistics").remove();
} else for (var i = 0; i != issues.length; ++i) {
document.title = cydia.localize("CANNOT_COMPLY");