Changeset 8861


Ignore:
Timestamp:
Jul 30, 2009, 7:03:37 PM (13 years ago)
Author:
kjg
Message:

(trunk web) don't invert the progress bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/torrent.js

    r8858 r8861  
    469469                                var seedRatioPercent = Math.round( seedRatioRatio * 100 * MaxBarWidth ) / 100;
    470470
     471                                // Set progress to percent seeded
     472                                root._progress_complete_container.style.width = seedRatioPercent + '%';
     473
     474                                // Update the 'incomplete' bar
    471475                                root._progress_incomplete_container.className = 'torrent_progress_bar incomplete seeding'
    472476                                root._progress_incomplete_container.style.display = 'block';
    473                                 root._progress_incomplete_container.style.width = seedRatioPercent + '%';
    474 
    475                                 // Set progress to maximum
    476                                 root._progress_complete_container.style.width = MaxBarWidth - seedRatioPercent  + '%';
     477                                root._progress_incomplete_container.style.width = MaxBarWidth - seedRatioPercent + '%';
    477478                        }
    478479                        else
Note: See TracChangeset for help on using the changeset viewer.