Skip to content

Commit d137c65

Browse files
committed
Replace 'row' with 'line' in JavaScript code
1 parent 902952b commit d137c65

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

gitinspector/html/html.header

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
var MINOR_AUTHOR_PERCENTAGE = 1.00;
1515
var isReversed = false;
1616

17-
var colorRows = function() {{
17+
var colorLines = function() {{
1818
$(this).removeClass("odd");
1919

2020
if (line++ % 2 == 1) {{
@@ -52,15 +52,15 @@
5252
return parseFloat(this.innerHTML) < MINOR_AUTHOR_PERCENTAGE;
5353
}}).parent().hide();
5454

55-
$("table.git tbody tr:visible").each(colorRows);
55+
$("table.git tbody tr:visible").each(colorLines);
5656

5757
$("table#changes, table#blame").tablesorter({{
5858
sortList: [[0,0]],
5959
headers: {{
6060
0: {{ sorter: "text" }}
6161
}}
6262
}}).bind("sortEnd", function() {{
63-
$(this).find("tbody tr:visible").each(colorRows);
63+
$(this).find("tbody tr:visible").each(colorLines);
6464
}});
6565

6666
$("table#changes thead tr th, table#blame thead tr th").click(function() {{
@@ -91,20 +91,20 @@
9191

9292
if (this.clicked) {{
9393
this.innerHTML = "{hide_minor_authors} (" + this.hiddenCount + ") &and;";
94-
$(this).parent().parent().parent().find("tbody tr").show().each(colorRows);
94+
$(this).parent().parent().parent().find("tbody tr").show().each(colorLines);
9595
}} else {{
9696
this.innerHTML = "{show_minor_authors} (" + this.hiddenCount + ") &or;";
9797
$(this).parent().parent().parent().find("tbody tr td:last-child").filter(function() {{
9898
return parseFloat(this.innerHTML) < MINOR_AUTHOR_PERCENTAGE;
9999
}}).parent().hide();
100-
$("table.git tbody tr:visible").each(colorRows);
100+
$("table.git tbody tr:visible").each(colorLines);
101101
}}
102102
}});
103103

104104
filterResponsibilities();
105105
var hiddenResponsibilitiesCount = $("div#responsibilities div h3:hidden").length;
106106
if (hiddenResponsibilitiesCount > 0) {{
107-
$("div#responsibilities div h3:visible").each(colorRows);
107+
$("div#responsibilities div h3:visible").each(colorLines);
108108
$("div#responsibilities").prepend("<div class=\"button\">{show_minor_authors} (" + hiddenResponsibilitiesCount + ") &or;</div>");
109109

110110
$("div#responsibilities div.button").click(function() {{
@@ -123,18 +123,18 @@
123123
filterTimeLine();
124124
var hiddenTimelineCount = $("div#timeline table.git tbody tr:hidden").length;
125125
if (hiddenTimelineCount > 0) {{
126-
$("div#timeline table.git tbody tr:visible").each(colorRows);
127-
$("div#timeline").prepend("<div class=\"button\">{show_minor_rows} (" + hiddenTimelineCount + ") &or;</div>");
126+
$("div#timeline table.git tbody tr:visible").each(colorLines);
127+
$("div#timeline").prepend("<div class=\"button\">{show_minor_lines} (" + hiddenTimelineCount + ") &or;</div>");
128128

129129
$("div#timeline div.button").click(function() {{
130130
this.clicked = !this.clicked;
131131
if (this.clicked) {{
132-
this.innerHTML = "{hide_minor_rows} (" + hiddenTimelineCount + ") &and;";
133-
$("div#timeline table.git tbody tr").show().each(colorRows);
132+
this.innerHTML = "{hide_minor_lines} (" + hiddenTimelineCount + ") &and;";
133+
$("div#timeline table.git tbody tr").show().each(colorLines);
134134
}} else {{
135-
this.innerHTML = "{show_minor_rows} (" + hiddenTimelineCount + ") &or;";
135+
this.innerHTML = "{show_minor_lines} (" + hiddenTimelineCount + ") &or;";
136136
filterTimeLine();
137-
$("div#timeline table.git tbody tr:visible").each(colorRows);
137+
$("div#timeline table.git tbody tr:visible").each(colorLines);
138138
}}
139139
}});
140140
}}

0 commit comments

Comments
 (0)