Browse files

Ensure 1st non-header row is white

  • Loading branch information...
1 parent 2343f68 commit 330886de17ac9ca8f6b787fa92fd02333526b59e rmagick committed Sep 5, 2006
Showing with 4 additions and 4 deletions.
  1. +4 −4 doc/scripts/stripeTables.js
View
8 doc/scripts/stripeTables.js
@@ -6,15 +6,15 @@ function stripeTables() {
var tables = document.getElementsByTagName("table");
for (var i = 0; i < tables.length; i++) {
if (tables[i].className == "striped") {
- var odd = false;
+ var gray = true;
var rows = tables[i].getElementsByTagName("tr");
for (var j = 0; j < rows.length; j++) {
- if (odd) {
+ if (gray) {
rows[j].style.backgroundColor = "#f0f0f0";
- odd = false;
+ gray = false;
}
else {
- odd = true;
+ gray = true;
}
}
}

0 comments on commit 330886d

Please sign in to comment.