},
//"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);
};
success: function (value) {
value = eval(value);
+ if (typeof value.notice == "undefined")
+ $(".notice").addClass("deleted");
+ else
+ $("#notice-src")[0].outerHTML = '<iframe' +
+ ' class="notice"' +
+ ' id="notice-src"' +
+ ' frameborder="0"' +
+ ' width="320"' +
+ ' height="0"' +
+ ' target="_top"' +
+ ' src="' + $.xml(value.notice) + '"' +
+ ' onload="onframe(' + "'notice-src', 'notice'" + ')"' +
+ '></iframe>';
+
if (typeof value.rating == "undefined")
$(".rating").addClass("deleted");
else {
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");
-
/*var store = commercial;
if (!store)
$(".activation").addClass("deleted");
$(".depiction").addClass("deleted");
else {
$(".description").addClass("deleted");
- $("#depiction-src").src(depiction);
+
+ $("#depiction-src")[0].outerHTML = '<iframe' +
+ ' class="depiction"' +
+ ' id="depiction-src"' +
+ ' frameborder="0"' +
+ ' width="320"' +
+ ' height="0"' +
+ ' target="_top"' +
+ ' src="' + $.xml(depiction) + '"' +
+ ' onload="onframe(' + "'depiction-src', 'depiction'" + ')"' +
+ '></iframe>';
}
- 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");
+ var notice = $("#notice-src");
+
+ notice[0].outerHTML = '<iframe' +
+ ' class="notice"' +
+ ' id="notice-src"' +
+ ' frameborder="0"' +
+ ' width="320"' +
+ ' height="0"' +
+ ' target="_top"' +
+ ' onload="onframe(' + "'notice-src', 'notice'" + ')"' +
+ '></iframe>';
+
var depiction = $("#depiction-src");
depiction[0].outerHTML = '<iframe' +
' width="320"' +
' height="0"' +
' target="_top"' +
- ' onload_="loaded()"' +
+ ' onload="onframe(' + "'depiction-src', 'depiction'" + ')"' +
'></iframe>';
special_();