|
|
@ -138,9 +138,13 @@ 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(), {width:80})); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if(i==0) { |
|
|
|
|
|
|
|
td.adopt(new Element('img', {'src':row[i]})); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
td.set('html', row[i]); |
|
|
|
td.set('html', row[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
td.injectInside(tr); |
|
|
|
td.injectInside(tr); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -257,11 +261,16 @@ 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) { |
|
|
|
tds[i].set('html', ''); |
|
|
|
new ProgressBar(row[i].toFloat(), {width:80}).replaces(tds[i].getChildren()[0]); |
|
|
|
tds[i].adopt(new ProgressBar(row[i].toFloat(), {width:80})); |
|
|
|
/*tds[i].set('html', ''); |
|
|
|
|
|
|
|
tds[i].adopt(new ProgressBar(row[i].toFloat(), {width:80}));*/ |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if(i==0) { |
|
|
|
|
|
|
|
tds[i].getChildren('img')[0].set('src', row[i]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
tds[i].set('html', row[i]); |
|
|
|
tds[i].set('html', row[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|