mirror of
https://github.com/transmission/transmission.git
synced 2025-12-23 11:58:36 +00:00
(web) #1171: bugs in viewing torrent info and progress bar
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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 ;
|
||||
},
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user