X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/1eb0c5545ce83b3f796e8a066c08d8a6c5055c0c..cb9c2100cb472c49a84facf7ba2ff6a0c65c6f02:/Cydia.app/package.js diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 45390065..480ec01d 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -5,6 +5,8 @@ "name": "Allen Porter", "address": "allen.porter@gmail.com" }, + //"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", "installed": "286u-4", @@ -34,7 +36,17 @@ $(function () { $(".author").remove(); else { $("#author").html(author.name); - $("#author-link").href("mailto:" + author.address + "?subject=" + regarding); + $("#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) + $(".depiction").remove(); + else { + $(".description").display("none"); + $("#depiction-src").src(depiction); } var description = package.description; @@ -48,14 +60,14 @@ $(function () { if (homepage == null) $(".homepage").remove(); else - $("#homepage-link").href(homepage); + $("#homepage-href").href(homepage); var installed = package.installed; if (installed == null) $(".installed").remove(); else { $("#installed").html(installed); - $("#files-link").href("cydia://files/" + id); + $("#files-href").href("cydia://files/" + id); } $("#id").html(id); @@ -77,7 +89,7 @@ $(function () { $(".maintainer").remove(); else { $("#maintainer").html(maintainer.name); - $("#maintainer-link").href("mailto:" + maintainer.address + "?subject=" + regarding); + $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding); } var sponsor = package.sponsor; @@ -85,15 +97,19 @@ $(function () { $(".sponsor").remove(); else { $("#sponsor").html(sponsor.name); - $("#sponsor-link").href(sponsor.address); + $("#sponsor-href").href(sponsor.address); } var source = package.source; - if (source == null) + if (source == null) { $(".source").remove(); - else { + $(".trusted").remove(); + } else { $("#source-name").html(source.name); + if (!source.trusted) + $(".trusted").remove(); + var description = source.description; if (description == null) $(".source-description").remove();