]> git.saurik.com Git - cydia.git/commitdiff
I hate EdgeCast so very bad.
authorJay Freeman (saurik) <saurik@saurk.com>
Wed, 31 Dec 2008 09:40:31 +0000 (09:40 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:09:39 +0000 (07:09 +0000)
Cydia.app/package.js
Cydia.mm
control

index de1343c60b08b11913f8903eec5fd4ad373b2455..1f4939cb0fcf27bdf67b5d169fb04e08f07c1ed1 100644 (file)
@@ -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 () {
index 467fcd64c31a5b93493cdd13c0760f915162c2e4..a4b2e60034578f0ee4e64e48d6cf6e342d07f6bf 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -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
diff --git a/control b/control
index 36b903360889a4df5abdc2e2136a8860792ba1cc..81f29b7c8f7adc0ad889162f67e6d952b0755230 100644 (file)
--- a/control
+++ b/control
@@ -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