]> granicus.if.org Git - transmission/commitdiff
(trunk web) remove the files when the torrent is removed
authorKevin Glowacz <kevin@glowacz.info>
Wed, 27 May 2009 23:12:06 +0000 (23:12 +0000)
committerKevin Glowacz <kevin@glowacz.info>
Wed, 27 May 2009 23:12:06 +0000 (23:12 +0000)
web/javascript/torrent.js
web/javascript/transmission.js

index 90b9fda3b189383c2d03a6ed524a274b506e674b..5a6398d55d66578a43ce5ce9fcf9ac3efa07027c 100644 (file)
@@ -484,6 +484,11 @@ Torrent.prototype =
                }
        },
 
+       deleteFiles: function(){
+               if (this._fileList)
+                       $(this._fileList).remove();
+       },
+
        /*
         * Return true if this torrent is selected
         */
index 5e0339c96b70d27087115b7c861e91571123371f..1eac445361f070142994b469a5606863c08878ea 100644 (file)
@@ -1239,6 +1239,7 @@ Transmission.prototype =
 
                                var pos = Torrent.indexOf( tr._torrents, torrent.id( ) );
                                torrent.hideFileList();
+                               torrent.deleteFiles();
                                tr._torrents.splice( pos, 1 );
                        }
                });