From a2bd7a7305fc62b7e218cb206b56f35d3a880f28 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Sat, 11 Dec 2010 23:11:07 -0800 Subject: Fixed empty Statistics on confirm page if all statistics have been removed. --- MobileCydia.app/confirm.html | 4 ++-- MobileCydia.app/confirm.js | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) (limited to 'MobileCydia.app') diff --git a/MobileCydia.app/confirm.html b/MobileCydia.app/confirm.html index 5a4ed55..dbc6043 100644 --- a/MobileCydia.app/confirm.html +++ b/MobileCydia.app/confirm.html @@ -15,8 +15,8 @@

:

- -
+ +
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"); -- cgit v1.2.3