From fe1f620731887c3c1d6451858d0e496217669773 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 20 Nov 2013 19:36:34 +0000 Subject: [PATCH] Fix web ui showing total_size rather than total_wanted for Size column --- deluge/ui/web/js/deluge-all/Keys.js | 4 ++-- deluge/ui/web/js/deluge-all/TorrentGrid.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Keys.js b/deluge/ui/web/js/deluge-all/Keys.js index fa48a90d7..48970b99a 100644 --- a/deluge/ui/web/js/deluge-all/Keys.js +++ b/deluge/ui/web/js/deluge-all/Keys.js @@ -39,7 +39,7 @@ Deluge.Keys = { /** * Keys that are used within the torrent grid. - *
['queue', 'name', 'total_size', 'state', 'progress', 'num_seeds',
+     * 
['queue', 'name', 'total_size', 'total_wanted', 'state', 'progress', 'num_seeds',
      * 'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate',
      * 'upload_payload_rate', 'eta', 'ratio', 'distributed_copies',
      * 'is_auto_managed', 'time_added', 'tracker_host', 'save_path',
@@ -47,7 +47,7 @@ Deluge.Keys = {
      * 'seeds_peers_ratio', 'total_remaining']
*/ Grid: [ - 'queue', 'name', 'total_size', 'state', 'progress', 'num_seeds', + 'queue', 'name', 'total_size', 'total_wanted', 'state', 'progress', 'num_seeds', 'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate', 'upload_payload_rate', 'eta', 'ratio', 'distributed_copies', 'is_auto_managed', 'time_added', 'tracker_host', 'save_path', 'last_seen_complete', diff --git a/deluge/ui/web/js/deluge-all/TorrentGrid.js b/deluge/ui/web/js/deluge-all/TorrentGrid.js index 3be20814b..247075cd5 100644 --- a/deluge/ui/web/js/deluge-all/TorrentGrid.js +++ b/deluge/ui/web/js/deluge-all/TorrentGrid.js @@ -123,7 +123,7 @@ width: 75, sortable: true, renderer: fsize, - dataIndex: 'total_size' + dataIndex: 'total_wanted' }, { header: _('Progress'), width: 150, @@ -274,7 +274,7 @@ fields: [ {name: 'queue', sortType: Deluge.data.SortTypes.asQueuePosition}, {name: 'name', sortType: Deluge.data.SortTypes.asName}, - {name: 'total_size', type: 'int'}, + {name: 'total_wanted', type: 'int'}, {name: 'state'}, {name: 'progress', type: 'float'}, {name: 'num_seeds', type: 'int'},