Changeset 8546


Ignore:
Timestamp:
May 27, 2009, 11:12:06 PM (12 years ago)
Author:
kjg
Message:

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

Location:
trunk/web/javascript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/torrent.js

    r8529 r8546  
    483483                        }
    484484                }
     485        },
     486
     487        deleteFiles: function(){
     488                if (this._fileList)
     489                        $(this._fileList).remove();
    485490        },
    486491
  • trunk/web/javascript/transmission.js

    r8529 r8546  
    12401240                                var pos = Torrent.indexOf( tr._torrents, torrent.id( ) );
    12411241                                torrent.hideFileList();
     1242                                torrent.deleteFiles();
    12421243                                tr._torrents.splice( pos, 1 );
    12431244                        }
Note: See TracChangeset for help on using the changeset viewer.