mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix transfer list flickering
This commit is contained in:
parent
93f3d0b687
commit
c212d8beff
3 changed files with 16 additions and 30 deletions
|
@ -139,7 +139,11 @@ var dynamicTable = new Class ({
|
|||
if(i==this.progressIndex) {
|
||||
td.adopt(new ProgressBar(row[i].toFloat(), {width:80}));
|
||||
} else {
|
||||
td.set('html', row[i]);
|
||||
if(i==0) {
|
||||
td.adopt(new Element('img', {'src':row[i]}));
|
||||
} else {
|
||||
td.set('html', row[i]);
|
||||
}
|
||||
}
|
||||
td.injectInside(tr);
|
||||
};
|
||||
|
@ -257,10 +261,15 @@ var dynamicTable = new Class ({
|
|||
var tds = tr.getElements('td');
|
||||
for(var i=0; i<row.length; i++) {
|
||||
if(i==this.progressIndex) {
|
||||
tds[i].set('html', '');
|
||||
tds[i].adopt(new ProgressBar(row[i].toFloat(), {width:80}));
|
||||
new ProgressBar(row[i].toFloat(), {width:80}).replaces(tds[i].getChildren()[0]);
|
||||
/*tds[i].set('html', '');
|
||||
tds[i].adopt(new ProgressBar(row[i].toFloat(), {width:80}));*/
|
||||
} else {
|
||||
tds[i].set('html', row[i]);
|
||||
if(i==0) {
|
||||
tds[i].getChildren('img')[0].set('src', row[i]);
|
||||
} else {
|
||||
tds[i].set('html', row[i]);
|
||||
}
|
||||
}
|
||||
};
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue