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:
parent
ac78a8625f
commit
782130435a
2 changed files with 6 additions and 0 deletions
|
@ -484,6 +484,11 @@ Torrent.prototype =
|
|||
}
|
||||
},
|
||||
|
||||
deleteFiles: function(){
|
||||
if (this._fileList)
|
||||
$(this._fileList).remove();
|
||||
},
|
||||
|
||||
/*
|
||||
* Return true if this torrent is selected
|
||||
*/
|
||||
|
|
|
@ -1239,6 +1239,7 @@ Transmission.prototype =
|
|||
|
||||
var pos = Torrent.indexOf( tr._torrents, torrent.id( ) );
|
||||
torrent.hideFileList();
|
||||
torrent.deleteFiles();
|
||||
tr._torrents.splice( pos, 1 );
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue