summaryrefslogtreecommitdiff
path: root/Cydia.app/package.js
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-10-16 00:57:10 -0700
committerGrant Paul <chpwn@chpwn.com>2010-10-16 00:57:10 -0700
commit0d43d640da137d0de4b4d66613898d3a0eed4808 (patch)
tree4f0ff9da31f812a83e9ac248837d92d06b922767 /Cydia.app/package.js
parent1edcdccff91b5e32f9fcf40cfcbd00c98bb237ed (diff)
parentb9ada469088990a084f1bf0bebe5f7cc7dce4148 (diff)
Merge branch 'master' of saurik.com:cydia
Diffstat (limited to 'Cydia.app/package.js')
-rw-r--r--Cydia.app/package.js26
1 files changed, 15 insertions, 11 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index 6e091cf..b9f85ff 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -195,19 +195,23 @@ var special_ = function () {
}*/
var depiction = package.depiction;
- if (depiction == null)
- $(".depiction").addClass("deleted");
- else {
+ if (depiction != null) {
$(".description").addClass("deleted");
$("#depiction-src").src(depiction);
- }
+ } else {
+ $(".depiction").addClass("deleted");
- var description = package.longDescription;
- if (description == null)
- description = package.shortDescription;
- else
- description = description.replace(/\n/g, "<br/>");
- $("#description").html(description);
+ var description = package.longDescription;
+ if (description == null)
+ description = package.shortDescription;
+
+ if (description == null)
+ $(".description").addClass("deleted");
+ else {
+ description = $.xml(description).replace(/\n/g, "<br/>");
+ $("#description").html(description);
+ }
+ }
var homepage = package.homepage;
if (homepage == null)
@@ -279,7 +283,7 @@ var special_ = function () {
if (description == null)
$(".source-description").addClass("deleted");
else
- $("#source-description").html(description);
+ $("#source-description").html($.xml(description));
}
};