From cee1bfd139863e8799e63a51174c722f8ac65088 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 24 Aug 2011 23:51:07 +0000 Subject: [PATCH] (trunk web) allow select all/deselect all in the files table when there's only a single file changed --- web/javascript/transmission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index c11e82803..3f76b4415 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -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); }