From d90c3f04b4bdbdd5d09753fd15d3512e8a241648 Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Fri, 22 May 2009 23:46:14 +0000 Subject: [PATCH] (trunk web) prevent extra pointless requests --- web/javascript/transmission.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 96ace3ef1..50eb10578 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -1110,7 +1110,8 @@ Transmission.prototype = new_torrent_ids.push(this.id); } ); - tr.remote.loadTorrentFiles( refresh_files_for ); + if(refresh_files_for.length > 0) + tr.remote.loadTorrentFiles( refresh_files_for ); if(new_torrent_ids.length > 0) tr.remote.getInitialDataFor(new_torrent_ids, function(torrents){ tr.addTorrents(torrents) } );