diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-03-07 08:24:22 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:09:50 +0000 |
commit | 3bd1c2a2a065f381047db7201797be94f19e4c6c (patch) | |
tree | 11bc5a999092359d90609697fd4e04663e70cfa8 /Cydia.app/package.js | |
parent | e124f5222a28c2a3e2081155cbaa02017b763b93 (diff) |
Checkpoint before final completion.
Diffstat (limited to 'Cydia.app/package.js')
-rw-r--r-- | Cydia.app/package.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js index c3b361c..200be8b 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -63,7 +63,7 @@ $(function () { $("#name").html(name); space("#latest", package.latest, 96); - $.xhr((api + 'package_/' + idc), 'GET', {}, null, { + $.xhr(cache(api + 'package/' + idc), 'GET', {}, null, { success: function (value) { value = eval(value); @@ -145,19 +145,11 @@ $(function () { } }*/ - var purposes = package.purposes; - var commercial = false; - var _console = false; - if (purposes != null) - for (var i = 0, e = purposes.length; i != e; ++i) { - var purpose = purposes[i]; - if (purpose == "commercial") - commercial = true; - else if (purpose == "console") - _console = true; - } + var commercial = package.hasTag('cydia::commercial'); if (!commercial) $(".commercial").remove(); + + var _console = package.hasTag('purpose::console'); if (!_console) $(".console").remove(); @@ -174,6 +166,14 @@ $(function () { //$("#notice-src").src("http://saurik.cachefly.net/notice/" + idc + ".html"); + /*var store = commercial; + if (!store) + $(".activation").remove(); + else { + var activation = api + 'activation/' + idc; + $("#activation-src").src(activation); + }*/ + var depiction = package.depiction; if (depiction == null) $(".depiction").remove(); |