mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-26 02:01:27 +01:00
Replace 'row' with 'line' in JavaScript code
This commit is contained in:
parent
902952b072
commit
d137c65b49
1 changed files with 12 additions and 12 deletions
|
@ -14,7 +14,7 @@
|
|||
var MINOR_AUTHOR_PERCENTAGE = 1.00;
|
||||
var isReversed = false;
|
||||
|
||||
var colorRows = function() {{
|
||||
var colorLines = function() {{
|
||||
$(this).removeClass("odd");
|
||||
|
||||
if (line++ % 2 == 1) {{
|
||||
|
@ -52,7 +52,7 @@
|
|||
return parseFloat(this.innerHTML) < MINOR_AUTHOR_PERCENTAGE;
|
||||
}}).parent().hide();
|
||||
|
||||
$("table.git tbody tr:visible").each(colorRows);
|
||||
$("table.git tbody tr:visible").each(colorLines);
|
||||
|
||||
$("table#changes, table#blame").tablesorter({{
|
||||
sortList: [[0,0]],
|
||||
|
@ -60,7 +60,7 @@
|
|||
0: {{ sorter: "text" }}
|
||||
}}
|
||||
}}).bind("sortEnd", function() {{
|
||||
$(this).find("tbody tr:visible").each(colorRows);
|
||||
$(this).find("tbody tr:visible").each(colorLines);
|
||||
}});
|
||||
|
||||
$("table#changes thead tr th, table#blame thead tr th").click(function() {{
|
||||
|
@ -91,20 +91,20 @@
|
|||
|
||||
if (this.clicked) {{
|
||||
this.innerHTML = "{hide_minor_authors} (" + this.hiddenCount + ") ∧";
|
||||
$(this).parent().parent().parent().find("tbody tr").show().each(colorRows);
|
||||
$(this).parent().parent().parent().find("tbody tr").show().each(colorLines);
|
||||
}} else {{
|
||||
this.innerHTML = "{show_minor_authors} (" + this.hiddenCount + ") ∨";
|
||||
$(this).parent().parent().parent().find("tbody tr td:last-child").filter(function() {{
|
||||
return parseFloat(this.innerHTML) < MINOR_AUTHOR_PERCENTAGE;
|
||||
}}).parent().hide();
|
||||
$("table.git tbody tr:visible").each(colorRows);
|
||||
$("table.git tbody tr:visible").each(colorLines);
|
||||
}}
|
||||
}});
|
||||
|
||||
filterResponsibilities();
|
||||
var hiddenResponsibilitiesCount = $("div#responsibilities div h3:hidden").length;
|
||||
if (hiddenResponsibilitiesCount > 0) {{
|
||||
$("div#responsibilities div h3:visible").each(colorRows);
|
||||
$("div#responsibilities div h3:visible").each(colorLines);
|
||||
$("div#responsibilities").prepend("<div class=\"button\">{show_minor_authors} (" + hiddenResponsibilitiesCount + ") ∨</div>");
|
||||
|
||||
$("div#responsibilities div.button").click(function() {{
|
||||
|
@ -123,18 +123,18 @@
|
|||
filterTimeLine();
|
||||
var hiddenTimelineCount = $("div#timeline table.git tbody tr:hidden").length;
|
||||
if (hiddenTimelineCount > 0) {{
|
||||
$("div#timeline table.git tbody tr:visible").each(colorRows);
|
||||
$("div#timeline").prepend("<div class=\"button\">{show_minor_rows} (" + hiddenTimelineCount + ") ∨</div>");
|
||||
$("div#timeline table.git tbody tr:visible").each(colorLines);
|
||||
$("div#timeline").prepend("<div class=\"button\">{show_minor_lines} (" + hiddenTimelineCount + ") ∨</div>");
|
||||
|
||||
$("div#timeline div.button").click(function() {{
|
||||
this.clicked = !this.clicked;
|
||||
if (this.clicked) {{
|
||||
this.innerHTML = "{hide_minor_rows} (" + hiddenTimelineCount + ") ∧";
|
||||
$("div#timeline table.git tbody tr").show().each(colorRows);
|
||||
this.innerHTML = "{hide_minor_lines} (" + hiddenTimelineCount + ") ∧";
|
||||
$("div#timeline table.git tbody tr").show().each(colorLines);
|
||||
}} else {{
|
||||
this.innerHTML = "{show_minor_rows} (" + hiddenTimelineCount + ") ∨";
|
||||
this.innerHTML = "{show_minor_lines} (" + hiddenTimelineCount + ") ∨";
|
||||
filterTimeLine();
|
||||
$("div#timeline table.git tbody tr:visible").each(colorRows);
|
||||
$("div#timeline table.git tbody tr:visible").each(colorLines);
|
||||
}}
|
||||
}});
|
||||
}}
|
||||
|
|
Loading…
Add table
Reference in a new issue