|
14 | 14 | var MINOR_AUTHOR_PERCENTAGE = 1.00; |
15 | 15 | var isReversed = false; |
16 | 16 |
|
17 | | - var colorRows = function() {{ |
| 17 | + var colorLines = function() {{ |
18 | 18 | $(this).removeClass("odd"); |
19 | 19 |
|
20 | 20 | if (line++ % 2 == 1) {{ |
|
52 | 52 | return parseFloat(this.innerHTML) < MINOR_AUTHOR_PERCENTAGE; |
53 | 53 | }}).parent().hide(); |
54 | 54 |
|
55 | | - $("table.git tbody tr:visible").each(colorRows); |
| 55 | + $("table.git tbody tr:visible").each(colorLines); |
56 | 56 |
|
57 | 57 | $("table#changes, table#blame").tablesorter({{ |
58 | 58 | sortList: [[0,0]], |
59 | 59 | headers: {{ |
60 | 60 | 0: {{ sorter: "text" }} |
61 | 61 | }} |
62 | 62 | }}).bind("sortEnd", function() {{ |
63 | | - $(this).find("tbody tr:visible").each(colorRows); |
| 63 | + $(this).find("tbody tr:visible").each(colorLines); |
64 | 64 | }}); |
65 | 65 |
|
66 | 66 | $("table#changes thead tr th, table#blame thead tr th").click(function() {{ |
|
91 | 91 |
|
92 | 92 | if (this.clicked) {{ |
93 | 93 | this.innerHTML = "{hide_minor_authors} (" + this.hiddenCount + ") ∧"; |
94 | | - $(this).parent().parent().parent().find("tbody tr").show().each(colorRows); |
| 94 | + $(this).parent().parent().parent().find("tbody tr").show().each(colorLines); |
95 | 95 | }} else {{ |
96 | 96 | this.innerHTML = "{show_minor_authors} (" + this.hiddenCount + ") ∨"; |
97 | 97 | $(this).parent().parent().parent().find("tbody tr td:last-child").filter(function() {{ |
98 | 98 | return parseFloat(this.innerHTML) < MINOR_AUTHOR_PERCENTAGE; |
99 | 99 | }}).parent().hide(); |
100 | | - $("table.git tbody tr:visible").each(colorRows); |
| 100 | + $("table.git tbody tr:visible").each(colorLines); |
101 | 101 | }} |
102 | 102 | }}); |
103 | 103 |
|
104 | 104 | filterResponsibilities(); |
105 | 105 | var hiddenResponsibilitiesCount = $("div#responsibilities div h3:hidden").length; |
106 | 106 | if (hiddenResponsibilitiesCount > 0) {{ |
107 | | - $("div#responsibilities div h3:visible").each(colorRows); |
| 107 | + $("div#responsibilities div h3:visible").each(colorLines); |
108 | 108 | $("div#responsibilities").prepend("<div class=\"button\">{show_minor_authors} (" + hiddenResponsibilitiesCount + ") ∨</div>"); |
109 | 109 |
|
110 | 110 | $("div#responsibilities div.button").click(function() {{ |
|
123 | 123 | filterTimeLine(); |
124 | 124 | var hiddenTimelineCount = $("div#timeline table.git tbody tr:hidden").length; |
125 | 125 | if (hiddenTimelineCount > 0) {{ |
126 | | - $("div#timeline table.git tbody tr:visible").each(colorRows); |
127 | | - $("div#timeline").prepend("<div class=\"button\">{show_minor_rows} (" + hiddenTimelineCount + ") ∨</div>"); |
| 126 | + $("div#timeline table.git tbody tr:visible").each(colorLines); |
| 127 | + $("div#timeline").prepend("<div class=\"button\">{show_minor_lines} (" + hiddenTimelineCount + ") ∨</div>"); |
128 | 128 |
|
129 | 129 | $("div#timeline div.button").click(function() {{ |
130 | 130 | this.clicked = !this.clicked; |
131 | 131 | if (this.clicked) {{ |
132 | | - this.innerHTML = "{hide_minor_rows} (" + hiddenTimelineCount + ") ∧"; |
133 | | - $("div#timeline table.git tbody tr").show().each(colorRows); |
| 132 | + this.innerHTML = "{hide_minor_lines} (" + hiddenTimelineCount + ") ∧"; |
| 133 | + $("div#timeline table.git tbody tr").show().each(colorLines); |
134 | 134 | }} else {{ |
135 | | - this.innerHTML = "{show_minor_rows} (" + hiddenTimelineCount + ") ∨"; |
| 135 | + this.innerHTML = "{show_minor_lines} (" + hiddenTimelineCount + ") ∨"; |
136 | 136 | filterTimeLine(); |
137 | | - $("div#timeline table.git tbody tr:visible").each(colorRows); |
| 137 | + $("div#timeline table.git tbody tr:visible").each(colorLines); |
138 | 138 | }} |
139 | 139 | }}); |
140 | 140 | }} |
|
0 commit comments