MDL-17807 Fixed skipped first column (Thanks Barry)

This commit is contained in:
nicolasconnault 2009-02-11 14:29:11 +00:00
parent b827784e59
commit f5c6409eaa

View File

@ -2,7 +2,7 @@
function set_row(idx) {
var table = document.getElementById('user-grades');
var rowsize = table.rows[idx].cells.length;
for (var i = 1; i < rowsize; i++) {
for (var i = 0; i < rowsize; i++) {
if (table.rows[idx].cells[i]) {
if (table.rows[idx].cells[i].className.search(/hmarked/) != -1) {
table.rows[idx].cells[i].className = table.rows[idx].cells[i].className.replace(' hmarked', '');
@ -25,4 +25,4 @@ function set_col(idx) {
}
}
}
}
}