1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(trunk web) remove the files when the torrent is removed

This commit is contained in:
Kevin Glowacz 2009-05-27 23:12:06 +00:00
parent ac78a8625f
commit 782130435a
2 changed files with 6 additions and 0 deletions

View file

@ -484,6 +484,11 @@ Torrent.prototype =
}
},
deleteFiles: function(){
if (this._fileList)
$(this._fileList).remove();
},
/*
* Return true if this torrent is selected
*/

View file

@ -1239,6 +1239,7 @@ Transmission.prototype =
var pos = Torrent.indexOf( tr._torrents, torrent.id( ) );
torrent.hideFileList();
torrent.deleteFiles();
tr._torrents.splice( pos, 1 );
}
});