Hovering (in HTML output) is now done with CSS instead of javascript.
This commit is contained in:
parent
72975d548c
commit
c6771c0b9f
2
blame.py
2
blame.py
|
@ -162,7 +162,7 @@ class BlameOutput(Outputable):
|
||||||
get(self.hard)
|
get(self.hard)
|
||||||
|
|
||||||
blame_xml = "<div><div class=\"box\">"
|
blame_xml = "<div><div class=\"box\">"
|
||||||
blame_xml += "<p>" + __blame_info_text__ + ".</p><div><table class=\"git\">"
|
blame_xml += "<p>" + __blame_info_text__ + ".</p><div><table id=\"blame\" class=\"git\">"
|
||||||
blame_xml += "<thead><tr> <th>Author</th> <th>Rows</th> <th>% in comments</th> </tr></thead>"
|
blame_xml += "<thead><tr> <th>Author</th> <th>Rows</th> <th>% in comments</th> </tr></thead>"
|
||||||
blame_xml += "<tbody>"
|
blame_xml += "<tbody>"
|
||||||
chart_data = ""
|
chart_data = ""
|
||||||
|
|
|
@ -181,7 +181,7 @@ class ChangesOutput(Outputable):
|
||||||
total_changes += authorinfo_list.get(i).deletions
|
total_changes += authorinfo_list.get(i).deletions
|
||||||
|
|
||||||
if authorinfo_list:
|
if authorinfo_list:
|
||||||
changes_xml += "<p>" + __historical_info_text__ + ".</p><div><table class=\"git\">"
|
changes_xml += "<p>" + __historical_info_text__ + ".</p><div><table id=\"changes\" class=\"git\">"
|
||||||
changes_xml += ("<thead><tr> <th>Author</th> <th>Commits</th> <th>Insertions</th> <th>Deletions</th>" +
|
changes_xml += ("<thead><tr> <th>Author</th> <th>Commits</th> <th>Insertions</th> <th>Deletions</th>" +
|
||||||
"<th>% of changes</th> </tr></thead>")
|
"<th>% of changes</th> </tr></thead>")
|
||||||
changes_xml += "<tbody>"
|
changes_xml += "<tbody>"
|
||||||
|
|
|
@ -39,10 +39,6 @@
|
||||||
return $(this).parent().parent().parent().find("tbody tr:hidden").length > 0;
|
return $(this).parent().parent().parent().find("tbody tr:hidden").length > 0;
|
||||||
}}).each(function() {{
|
}}).each(function() {{
|
||||||
this.innerHTML = "Show minor authors ∨";
|
this.innerHTML = "Show minor authors ∨";
|
||||||
}}).hover(function() {{
|
|
||||||
$(this).addClass("hover");
|
|
||||||
}}, function() {{
|
|
||||||
$(this).removeClass("hover");
|
|
||||||
}}).toggle(function() {{
|
}}).toggle(function() {{
|
||||||
this.innerHTML = "Hide minor authors ∧";
|
this.innerHTML = "Hide minor authors ∧";
|
||||||
$(this).parent().parent().parent().find("tbody tr").show().each(colorRows);
|
$(this).parent().parent().parent().find("tbody tr").show().each(colorRows);
|
||||||
|
@ -60,11 +56,7 @@
|
||||||
$("div#timeline table.git tbody tr:visible").each(colorRows);
|
$("div#timeline table.git tbody tr:visible").each(colorRows);
|
||||||
$("div#timeline").prepend("<div class=\"button\">Show rows with minor work ∨</div>");
|
$("div#timeline").prepend("<div class=\"button\">Show rows with minor work ∨</div>");
|
||||||
|
|
||||||
$("div#timeline div.button").hover(function() {{
|
$("div#timeline div.button").toggle(function() {{
|
||||||
$(this).addClass("hover");
|
|
||||||
}}, function() {{
|
|
||||||
$(this).removeClass("hover");
|
|
||||||
}}).toggle(function() {{
|
|
||||||
this.innerHTML = "Hide rows with minor work ∧"
|
this.innerHTML = "Hide rows with minor work ∧"
|
||||||
$("div#timeline table.git tbody tr").show().each(colorRows);
|
$("div#timeline table.git tbody tr").show().each(colorRows);
|
||||||
}}, function() {{
|
}}, function() {{
|
||||||
|
@ -174,7 +166,7 @@
|
||||||
background-color: #ddcece;
|
background-color: #ddcece;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}}
|
}}
|
||||||
table.git tfoot tr td.hover, div.hover {{
|
table#changes tfoot tr td:hover, table#blame tfoot tr td:hover, div.button:hover {{
|
||||||
background-color: #eddede;
|
background-color: #eddede;
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
cursor: hand;
|
cursor: hand;
|
||||||
|
|
Loading…
Reference in New Issue