(trunk web) don't try to show a file list that is already showing. It causes hangs in FF3.5

This commit is contained in:
Kevin Glowacz 2009-05-25 00:41:44 +00:00
parent 8cafb677da
commit 9f75e3ba61
1 changed files with 7 additions and 1 deletions

View File

@ -192,7 +192,13 @@ Torrent.prototype =
totalSeeders: function() { return this._total_seeders; }, totalSeeders: function() { return this._total_seeders; },
uploadSpeed: function() { return this._upload_speed; }, uploadSpeed: function() { return this._upload_speed; },
uploadTotal: function() { return this._upload_total; }, 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(); }, hideFileList: function() { this.fileList().hide(); },
/*-------------------------------------------- /*--------------------------------------------