]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/package.js
Added custom depictions and better webview support.
[cydia.git] / Cydia.app / package.js
index aec81416fee118217d0fcdd97b0d47a3fa4331eb..0dfa6dc9c1d7f3c03aced59c52d756fdc604e35c 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://cydia.saurik.com/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();