summaryrefslogtreecommitdiff
path: root/Cydia.app
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-10-14 22:53:14 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:50 +0000
commitdec6029f07c75ffe08b7edcfa26455c3ee7692e8 (patch)
tree5fc3e3edacba51afde847f04deaf0626b8dae71c /Cydia.app
parent807ae6d7d376189cbf17271686d8389c541c7975 (diff)
Sections should have icons displayed, too.
Diffstat (limited to 'Cydia.app')
-rw-r--r--Cydia.app/package.html1
-rw-r--r--Cydia.app/package.js6
2 files changed, 5 insertions, 2 deletions
diff --git a/Cydia.app/package.html b/Cydia.app/package.html
index 710b87a..46da6ad 100644
--- a/Cydia.app/package.html
+++ b/Cydia.app/package.html
@@ -231,6 +231,7 @@
</div>
<div class="section">
+ <img id="section-src" class="icon"/>
<label>Section</label>
<div id="section"></div>
</div>
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index e409aa9..762167a 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -142,8 +142,10 @@ $(function () {
var section = package.section;
if (section == null)
$(".section").remove();
- else
- $("#section").html(package.section);
+ else {
+ $("#section-src").src("cydia://section-icon/" + encodeURIComponent(section));
+ $("#section").html(section);
+ }
var size = package.size;
if (size == 0)