mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
- Greatly improved Web UI transfer list refresh (Progress bar)
This commit is contained in:
parent
c212d8beff
commit
cc2da45c2d
1 changed files with 2 additions and 4 deletions
|
@ -137,7 +137,7 @@ var dynamicTable = new Class ({
|
||||||
{
|
{
|
||||||
var td = new Element('td');
|
var td = new Element('td');
|
||||||
if(i==this.progressIndex) {
|
if(i==this.progressIndex) {
|
||||||
td.adopt(new ProgressBar(row[i].toFloat(), {width:80}));
|
td.adopt(new ProgressBar(row[i].toFloat(), {'id': 'pb_'+id, 'width':80}));
|
||||||
} else {
|
} else {
|
||||||
if(i==0) {
|
if(i==0) {
|
||||||
td.adopt(new Element('img', {'src':row[i]}));
|
td.adopt(new Element('img', {'src':row[i]}));
|
||||||
|
@ -261,9 +261,7 @@ var dynamicTable = new Class ({
|
||||||
var tds = tr.getElements('td');
|
var tds = tr.getElements('td');
|
||||||
for(var i=0; i<row.length; i++) {
|
for(var i=0; i<row.length; i++) {
|
||||||
if(i==this.progressIndex) {
|
if(i==this.progressIndex) {
|
||||||
new ProgressBar(row[i].toFloat(), {width:80}).replaces(tds[i].getChildren()[0]);
|
$('pb_'+id).setValue(row[i].toFloat());
|
||||||
/*tds[i].set('html', '');
|
|
||||||
tds[i].adopt(new ProgressBar(row[i].toFloat(), {width:80}));*/
|
|
||||||
} else {
|
} else {
|
||||||
if(i==0) {
|
if(i==0) {
|
||||||
tds[i].getChildren('img')[0].set('src', row[i]);
|
tds[i].getChildren('img')[0].set('src', row[i]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue