1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-19 10:15:36 +00:00

(trunk web) allow select all/deselect all in the files table when there's only a single file changed

This commit is contained in:
Mitchell Livingston 2011-08-24 23:51:07 +00:00
parent 2eb7350f43
commit cee1bfd139

View file

@ -734,7 +734,7 @@ Transmission.prototype =
for (var i=0, row; row=this._files[i]; ++i)
if (row.isEditable() && (torrent._files[i].wanted !== wanted))
rows.push(row);
if (rows.length > 1) {
if (rows.length > 0) {
var command = wanted ? 'files-wanted' : 'files-unwanted';
this.changeFileCommand(command, rows);
}