diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-08-19 11:24:01 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:08:24 +0000 |
commit | 7d2ac47f3369cf198f78970363f0f31bd3cd44ee (patch) | |
tree | 440a777ee279b5055ba4714942a1352217bf68f9 /Cydia.app/package.js | |
parent | a954357579aa1fc2d03610d97d30a09156af7276 (diff) |
Added custom depictions and better webview support.
Diffstat (limited to 'Cydia.app/package.js')
-rw-r--r-- | Cydia.app/package.js | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js index aec8141..0dfa6dc 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -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(); |