mirror of
https://github.com/transmission/transmission.git
synced 2025-12-23 11:58:36 +00:00
(trunk web) remove the files when the torrent is removed
This commit is contained in:
@@ -484,6 +484,11 @@ Torrent.prototype =
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
deleteFiles: function(){
|
||||||
|
if (this._fileList)
|
||||||
|
$(this._fileList).remove();
|
||||||
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return true if this torrent is selected
|
* Return true if this torrent is selected
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1239,6 +1239,7 @@ Transmission.prototype =
|
|||||||
|
|
||||||
var pos = Torrent.indexOf( tr._torrents, torrent.id( ) );
|
var pos = Torrent.indexOf( tr._torrents, torrent.id( ) );
|
||||||
torrent.hideFileList();
|
torrent.hideFileList();
|
||||||
|
torrent.deleteFiles();
|
||||||
tr._torrents.splice( pos, 1 );
|
tr._torrents.splice( pos, 1 );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user