]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/package.js
Massive stability and feature improvements to Cydia.
[cydia.git] / Cydia.app / package.js
index aec81416fee118217d0fcdd97b0d47a3fa4331eb..480ec01dfb2ef1a04feb511a85a4990d7971c0ac 100644 (file)
@@ -5,10 +5,10 @@
         "name": "Allen Porter",
         "address": "allen.porter@gmail.com"
     },
-    "depiction": "http://planet-iphones.com/repository/info/chromium1.3.php",
+    //"depiction": "http://planet-iphones.com/repository/info/chromium1.3.php",
+    "depiction": "http://cydia.saurik.com/terminal.html",
     "description": "this is a sample description",
-    //"homepage": "http://cydia.saurik.com/terminal.html",
-    "homepage": "http://planet-iphones.com/repository/info/chromium1.3.php",
+    "homepage": "http://cydia.saurik.com/terminal.html",
     "installed": "286u-4",
     "id": "mobileterminal",
     "section": "Terminal Support",
@@ -39,21 +39,23 @@ $(function () {
         $("#author-href").href("mailto:" + author.address + "?subject=" + regarding);
     }
 
+    //$("#notice-src").src("http://saurik.cachefly.net/notice/" + encodeURIComponent(id) + ".html");
+
     var depiction = package.depiction;
-    if (depiction != null) {
-        $(".description").remove();
-        $("#depiction-src").src(depiction);
-    } else {
+    if (depiction == null)
         $(".depiction").remove();
-
-        var description = package.description;
-        if (description == null)
-            description = package.tagline;
-        else
-            description = description.replace(/\n/g, "<br/>");
-        $("#description").html(description);
+    else {
+        $(".description").display("none");
+        $("#depiction-src").src(depiction);
     }
 
+    var description = package.description;
+    if (description == null)
+        description = package.tagline;
+    else
+        description = description.replace(/\n/g, "<br/>");
+    $("#description").html(description);
+
     var homepage = package.homepage;
     if (homepage == null)
         $(".homepage").remove();