(web) #1171: bugs in viewing torrent info and progress bar

This commit is contained in:
Charles Kerr
2008-08-10 19:24:26 +00:00
parent e22eb7c68b
commit d212fff088
2 changed files with 9 additions and 0 deletions

View File

@@ -301,6 +301,12 @@ Torrent.prototype =
// Add the progress bar
var notDone = this._leftUntilDone > 0;
// Fix for situation
// when a verifying/downloading torrent gets state seeding
if( this.state == Torrent._StatusSeeding )
notDone = false ;
if( notDone )
{
var eta = '';

View File

@@ -913,6 +913,9 @@ Transmission.prototype =
$(ti+'secure')[0].innerHTML = private_string;
$(ti+'creator_date')[0].innerHTML = date_created;
$(ti+'progress')[0].innerHTML = Math.ratio( sizeDone*100, sizeWhenDone ) + '%';
$(ti+'comment')[0].innerHTML = comment ;
$(ti+'creator')[0].innerHTML = creator ;
$(ti+'error')[0].innerHTML = error ;
},
/*