diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-08-12 12:57:17 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:08:17 +0000 |
commit | 25a2158d9d2f51732843c7deb1835537d28b1ccd (patch) | |
tree | 8ce2305150f7a31c2c94153cef9f819d511a8cdc /Cydia.app/package.js | |
parent | dddbc481e8debaf3fd2fe1b41fc4ce30cb29a2b6 (diff) |
Fixed trusted and added iSpazio and Depiction.
Diffstat (limited to 'Cydia.app/package.js')
-rw-r--r-- | Cydia.app/package.js | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 4539006..aec8141 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -5,8 +5,10 @@ "name": "Allen Porter", "address": "allen.porter@gmail.com" }, + "depiction": "http://planet-iphones.com/repository/info/chromium1.3.php", "description": "this is a sample description", - "homepage": "http://cydia.saurik.com/terminal.html", + //"homepage": "http://cydia.saurik.com/terminal.html", + "homepage": "http://planet-iphones.com/repository/info/chromium1.3.php", "installed": "286u-4", "id": "mobileterminal", "section": "Terminal Support", @@ -34,28 +36,36 @@ $(function () { $(".author").remove(); else { $("#author").html(author.name); - $("#author-link").href("mailto:" + author.address + "?subject=" + regarding); + $("#author-href").href("mailto:" + author.address + "?subject=" + regarding); } - var description = package.description; - if (description == null) - description = package.tagline; - else - description = description.replace(/\n/g, "<br/>"); - $("#description").html(description); + var depiction = package.depiction; + if (depiction != null) { + $(".description").remove(); + $("#depiction-src").src(depiction); + } else { + $(".depiction").remove(); + + 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(); 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 +87,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 +95,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(); |