diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-06-22 11:58:12 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:57 +0000 |
commit | 043e6a2e0db66082bda204a1eb6e26061cde341b (patch) | |
tree | 6eef3a10b4d38453aaed3e16ad7c93353a841679 /Cydia.app/package.js | |
parent | 02036121c4966929c6fa52a8dbd5eb27c0ddf0f2 (diff) |
Fixed authors and maintainers.
Diffstat (limited to 'Cydia.app/package.js')
-rw-r--r-- | Cydia.app/package.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 5aec9ff..0e2a941 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -59,6 +59,8 @@ var special_ = function () { var icon = 'cydia://package-icon/' + idc; var api = 'http://cydia.saurik.com/api/'; + var support = package.support; + var regarding = function (type) { return encodeURIComponent("Cydia/APT(" + type + "): " + name); }; @@ -175,13 +177,10 @@ var special_ = function () { space("#author", author.name, 160); if (author.address == null) $("#author-icon").addClass("deleted"); - else { - var support = package.support; - if (support == null) - $("#author-href").href("mailto:" + author.address + "?subject=" + regarding("A")); - else - $("#author-href").href(support); - } + else if (support == null) + $("#author-href").href("mailto:" + author.address + "?subject=" + regarding("A")); + else + $("#author-href").href(support); } //$("#notice-src").src("http://saurik.cachefly.net/notice/" + idc + ".html"); @@ -246,8 +245,10 @@ var special_ = function () { space("#maintainer", maintainer.name, 153); if (maintainer.address == null) $("#maintainer-icon").addClass("deleted"); - else + else if (support == null) $("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding("M")); + else + $("#maintainer-href").href(support); } var sponsor = package.sponsor; |