mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk web) more torrent file js speedups
This commit is contained in:
parent
63b6ca7748
commit
9f612522bb
1 changed files with 3 additions and 3 deletions
|
@ -116,9 +116,9 @@ Torrent.prototype =
|
|||
file.wanted = data.fileStats[i].wanted;
|
||||
var torrentFile = new TorrentFile(file);
|
||||
this._files.push(torrentFile);
|
||||
this._fileList.append(
|
||||
torrentFile.element().addClass(i % 2 ? 'even' : 'odd').addClass('inspector_torrent_file_list_entry')
|
||||
);
|
||||
var class = (i % 2 ? 'even' : 'odd') + ' inspector_torrent_file_list_entry';
|
||||
torrentFile.element()[0].className = class;
|
||||
this._fileList[0].appendChild(torrentFile.element()[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue