|
|
@ -202,18 +202,17 @@ var filesDynTable = new Class({ |
|
|
|
updateRow: function(tr, row, id) { |
|
|
|
updateRow: function(tr, row, id) { |
|
|
|
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 == 3) { |
|
|
|
switch (i) { |
|
|
|
$('pbf_' + id).setValue(row[i].toFloat()); |
|
|
|
case 0: |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if (i == 0) { |
|
|
|
|
|
|
|
if (row[i] > 0) |
|
|
|
if (row[i] > 0) |
|
|
|
tds[i].getChildren('input')[0].set('checked', 'checked'); |
|
|
|
tds[i].getChildren('input')[0].set('checked', 'checked'); |
|
|
|
else |
|
|
|
else |
|
|
|
tds[i].getChildren('input')[0].removeProperty('checked') |
|
|
|
tds[i].getChildren('input')[0].removeProperty('checked'); |
|
|
|
} |
|
|
|
break; |
|
|
|
else { |
|
|
|
case 3: |
|
|
|
if (i == 4) { |
|
|
|
$('pbf_' + id).setValue(row[i].toFloat()); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 4: |
|
|
|
if (!is_seed && row[i] > 0) { |
|
|
|
if (!is_seed && row[i] > 0) { |
|
|
|
tds[i].getChildren('select').set('value', row[i]); |
|
|
|
tds[i].getChildren('select').set('value', row[i]); |
|
|
|
$('comboPrio' + id).removeClass("invisible"); |
|
|
|
$('comboPrio' + id).removeClass("invisible"); |
|
|
@ -222,13 +221,11 @@ var filesDynTable = new Class({ |
|
|
|
if (!$('comboPrio' + id).hasClass("invisible")) |
|
|
|
if (!$('comboPrio' + id).hasClass("invisible")) |
|
|
|
$('comboPrio' + id).addClass("invisible"); |
|
|
|
$('comboPrio' + id).addClass("invisible"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
else { |
|
|
|
default: |
|
|
|
tds[i].set('html', row[i]); |
|
|
|
tds[i].set('html', row[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -243,28 +240,30 @@ var filesDynTable = new Class({ |
|
|
|
this.rows.set(id, tr); |
|
|
|
this.rows.set(id, tr); |
|
|
|
for (var i = 0; i < row.length; i++) { |
|
|
|
for (var i = 0; i < row.length; i++) { |
|
|
|
var td = new Element('td'); |
|
|
|
var td = new Element('td'); |
|
|
|
if (i == 3) { |
|
|
|
switch (i) { |
|
|
|
td.adopt(new ProgressBar(row[i].toFloat(), { |
|
|
|
case 0: |
|
|
|
'id': 'pbf_' + id, |
|
|
|
|
|
|
|
'width': 80 |
|
|
|
|
|
|
|
})); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if (i == 0) { |
|
|
|
|
|
|
|
var tree_img = new Element('img', { |
|
|
|
var tree_img = new Element('img', { |
|
|
|
src: 'images/L.gif', |
|
|
|
src: 'images/L.gif', |
|
|
|
style: 'margin-bottom: -2px' |
|
|
|
style: 'margin-bottom: -2px' |
|
|
|
}); |
|
|
|
}); |
|
|
|
td.adopt(tree_img, createDownloadedCB(id, row[i])); |
|
|
|
td.adopt(tree_img, createDownloadedCB(id, row[i])); |
|
|
|
} |
|
|
|
break; |
|
|
|
else { |
|
|
|
case 1: |
|
|
|
if (i == 4) { |
|
|
|
td.set('html', row[i]); |
|
|
|
|
|
|
|
td.set('title', row[i]); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 3: |
|
|
|
|
|
|
|
td.adopt(new ProgressBar(row[i].toFloat(), { |
|
|
|
|
|
|
|
'id': 'pbf_' + id, |
|
|
|
|
|
|
|
'width': 80 |
|
|
|
|
|
|
|
})); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 4: |
|
|
|
td.adopt(createPriorityCombo(id, row[i])); |
|
|
|
td.adopt(createPriorityCombo(id, row[i])); |
|
|
|
} |
|
|
|
break; |
|
|
|
else { |
|
|
|
default: |
|
|
|
td.set('html', row[i]); |
|
|
|
td.set('html', row[i]); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
td.injectInside(tr); |
|
|
|
td.injectInside(tr); |
|
|
|
} |
|
|
|
} |
|
|
|