Browse Source

- Greatly improved Web UI transfer list refresh (Progress bar)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
cc2da45c2d
  1. 6
      src/webui/scripts/dynamicTable.js

6
src/webui/scripts/dynamicTable.js

@ -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…
Cancel
Save