diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index 90b9fda3b..5a6398d55 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -484,6 +484,11 @@ Torrent.prototype = } }, + deleteFiles: function(){ + if (this._fileList) + $(this._fileList).remove(); + }, + /* * Return true if this torrent is selected */ diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 5e0339c96..1eac44536 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -1239,6 +1239,7 @@ Transmission.prototype = var pos = Torrent.indexOf( tr._torrents, torrent.id( ) ); torrent.hideFileList(); + torrent.deleteFiles(); tr._torrents.splice( pos, 1 ); } });