},
//"depiction": "http://planet-iphones.com/repository/info/chromium1.3.php",
"depiction": "http://cydia.saurik.com/terminal.html",
- "description": "this is a sample description",
+ "longDescription": "this is a sample description",
"homepage": "http://cydia.saurik.com/terminal.html",
"installed": "286u-4",
"id": "mobileterminal",
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);
};
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");
$("#depiction-src").src(depiction);
}
- var description = package.description;
+ var description = package.longDescription;
if (description == null)
- description = package.tagline;
+ description = package.shortDescription;
else
description = description.replace(/\n/g, "<br/>");
$("#description").html(description);
space("#id", id, 220);
- var section = package.section;
+ var section = package.longSection;
if (section == null)
$(".section").addClass("deleted");
else {
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;
$("#thumb")[0].className = 'flip-180';
/* XXX: this could be better */
+ $("#rating-href").href(null);
$("#rating-none").css("display", "none");
$("#rating-done").css("display", "none");