summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Churchill <damoxc@gmail.com>2011-11-24 17:20:37 +0000
committerDamien Churchill <damoxc@gmail.com>2011-11-24 17:20:44 +0000
commitfa08f7de43e9a80c4116cfb47d8d17b848ba17b9 (patch)
treecd348fcac6ee3ee1b8fb5d2fdc9b9a56be563ef0
parenta91037843ba88d11930ac80b9570825422ccbcdc (diff)
downloaddeluge-fa08f7de43e9a80c4116cfb47d8d17b848ba17b9.tar.gz
deluge-fa08f7de43e9a80c4116cfb47d8d17b848ba17b9.tar.bz2
deluge-fa08f7de43e9a80c4116cfb47d8d17b848ba17b9.zip
details: add the missing items to the details tab
The web interface was missing the Owner and Shared items that have been added to the gtk ui. Add these to bring the web interface up to scratch.
-rw-r--r--deluge/ui/web/js/deluge-all/Keys.js2
-rw-r--r--deluge/ui/web/js/deluge-all/details/DetailsTab.js7
2 files changed, 7 insertions, 2 deletions
diff --git a/deluge/ui/web/js/deluge-all/Keys.js b/deluge/ui/web/js/deluge-all/Keys.js
index 36f549ddb..8d5239fa0 100644
--- a/deluge/ui/web/js/deluge-all/Keys.js
+++ b/deluge/ui/web/js/deluge-all/Keys.js
@@ -88,7 +88,7 @@ Deluge.Keys = {
*/
Details: [
'name', 'save_path', 'total_size', 'num_files', 'message',
- 'tracker', 'comment'
+ 'tracker', 'comment', 'owner', 'shared'
],
/**
diff --git a/deluge/ui/web/js/deluge-all/details/DetailsTab.js b/deluge/ui/web/js/deluge-all/details/DetailsTab.js
index 6130d12f1..4a9ef091f 100644
--- a/deluge/ui/web/js/deluge-all/details/DetailsTab.js
+++ b/deluge/ui/web/js/deluge-all/details/DetailsTab.js
@@ -35,6 +35,7 @@ Ext.define('Deluge.details.DetailsTab', {
extend: 'Ext.Panel',
title: _('Details'),
+ autoScroll: true,
fields: {},
queuedItems: {},
oldData: {},
@@ -49,6 +50,8 @@ Ext.define('Deluge.details.DetailsTab', {
this.addItem('comment', _('Comment'));
this.addItem('status', _('Status'));
this.addItem('tracker', _('Tracker'));
+ this.addItem('owner', _('Owner'));
+ this.addItem('shared', _('Shared'));
},
onRender: function(ct, position) {
@@ -100,7 +103,9 @@ Ext.define('Deluge.details.DetailsTab', {
files: torrent.num_files,
status: torrent.message,
tracker: torrent.tracker,
- comment: torrent.comment
+ comment: torrent.comment,
+ owner: torrent.owner,
+ shared: torrent.shared
};
for (var field in this.fields) {