diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index a58292de3..6e715a37e 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -88,7 +88,7 @@ Torrent.prototype = // insert the element $('#torrent_list').append(this._element); - this.initializeTorrentFilesInspectorGroup(); + this.initializeTorrentFilesInspectorGroup(data.files.length); for (var i = 0; i < data.files.length; i++) { var file = data.files[i]; @@ -107,14 +107,12 @@ Torrent.prototype = this.refresh(data); }, - initializeTorrentFilesInspectorGroup: function() { + initializeTorrentFilesInspectorGroup: function(length) { this._files = []; - this._fileList = $('