From 49c4b8b42aed40f32785b53f819c1a896fe47b05 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Mon, 20 Jan 2014 22:32:20 +0000 Subject: [PATCH] (trunk, web) #5589 'Magnet torrent shows 'retrieving' even when stopped' -- fix by JJTagy --- web/javascript/torrent-row.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/javascript/torrent-row.js b/web/javascript/torrent-row.js index edb29e5f5..c0e40a771 100644 --- a/web/javascript/torrent-row.js +++ b/web/javascript/torrent-row.js @@ -215,8 +215,11 @@ TorrentRendererFull.prototype = getProgressDetails: function(controller, t) { if (t.needsMetaData()) { + var MetaDataStatus = "retrieving"; + if (t.isStopped()) + MetaDataStatus = "needs"; var percent = 100 * t.getMetadataPercentComplete(); - return [ "Magnetized transfer - retrieving metadata (", + return [ "Magnetized transfer - " + MetaDataStatus + " metadata (", Transmission.fmt.percentString(percent), "%)" ].join(''); } -- 2.40.0