diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-12-31 09:40:31 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:09:39 +0000 |
commit | 49775c7b327111c12387c7bcecd6830c35240227 (patch) | |
tree | 99d4717f15e7c369d5bd756cd27051af2dcc2b96 | |
parent | 988f99ac50d99bc2c26c4b8f3c78cf4b62ff99f3 (diff) |
I hate EdgeCast so very bad.
-rw-r--r-- | Cydia.app/package.js | 32 | ||||
-rw-r--r-- | Cydia.mm | 2 | ||||
-rw-r--r-- | control | 2 |
3 files changed, 20 insertions, 16 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js index de1343c..1f4939c 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -63,33 +63,37 @@ $(function () { $("#name").html(name); space("#latest", package.latest, 96); - $.xhr(api + 'package/' + idc, 'GET', {}, null, { + $.xhr(cache(api + 'package/' + idc), 'GET', {}, null, { success: function (value) { value = eval(value); - $("#rating-load").remove(); + if (typeof value.rating == "undefined") + $(".rating").remove(); + else { + $("#rating-load").remove(); + $("#rating-href").href(value.reviews); - var href = $("#rating-href"); - href.href(value.reviews); + var none = $("#rating-none"); + var done = $("#rating-done"); - var none = $("#rating-none"); - var done = $("#rating-done"); + if (value.rating == null) { + done.remove(); + none.css("display", "block"); + } else { + none.remove(); + done.css("display", "block"); - if (value.rating == null) { - done.remove(); - none.css("display", "block"); - } else { - none.remove(); - done.css("display", "block"); - - $("#rating-value").css('width', 16 * value.rating); + $("#rating-value").css('width', 16 * value.rating); + } } if (typeof value.icon != "undefined" && value.icon != null) { var icon = $("#icon"); var thumb = $("#thumb"); + icon[0].className = 'flip-180'; thumb[0].className = 'flip-360'; + thumb.css("background-image", 'url("' + value.icon + '")'); setTimeout(function () { @@ -257,7 +257,7 @@ extern NSString * const kCAFilterNearest; #define lprintf(args...) fprintf(stderr, args) -#define ForRelease 0 +#define ForRelease 1 #define ForSaurik (1 && !ForRelease) #define IgnoreInstall (0 && !ForRelease) #define RecycleWebViews 0 @@ -4,7 +4,7 @@ Priority: required Section: Packaging Maintainer: Jay Freeman (saurik) <saurik@saurik.com> Architecture: iphoneos-arm -Version: 1.0.2683-38 +Version: 1.0.2684-39 Replaces: com.sosiphone.addcydia Depends: apt, darwintools, pcre, shell-cmds Conflicts: com.sosiphone.addcydia |