From 9f75e3ba61f036347ca467c98c85cef774a87ec4 Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Mon, 25 May 2009 00:41:44 +0000 Subject: [PATCH] (trunk web) don't try to show a file list that is already showing. It causes hangs in FF3.5 --- web/javascript/torrent.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index 95dffdd73..0b5989e40 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -192,7 +192,13 @@ Torrent.prototype = totalSeeders: function() { return this._total_seeders; }, uploadSpeed: function() { return this._upload_speed; }, uploadTotal: function() { return this._upload_total; }, - showFileList: function() { this.ensureFileListExists(); this.refreshFileView(); this.fileList().show(); }, + showFileList: function() { + if(this.fileList().is(':visible')) + return; + this.ensureFileListExists(); + this.refreshFileView(); + this.fileList().show(); + }, hideFileList: function() { this.fileList().hide(); }, /*--------------------------------------------