Hovering (in HTML output) is now done with CSS instead of javascript.

This commit is contained in:
Adam Waldenberg 2013-05-16 03:06:06 +02:00
parent 72975d548c
commit c6771c0b9f
3 changed files with 4 additions and 12 deletions

View File

@ -162,7 +162,7 @@ class BlameOutput(Outputable):
get(self.hard)
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 += "<tbody>"
chart_data = ""

View File

@ -181,7 +181,7 @@ class ChangesOutput(Outputable):
total_changes += authorinfo_list.get(i).deletions
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>" +
"<th>% of changes</th> </tr></thead>")
changes_xml += "<tbody>"

View File

@ -39,10 +39,6 @@
return $(this).parent().parent().parent().find("tbody tr:hidden").length > 0;
}}).each(function() {{
this.innerHTML = "Show minor authors &or;";
}}).hover(function() {{
$(this).addClass("hover");
}}, function() {{
$(this).removeClass("hover");
}}).toggle(function() {{
this.innerHTML = "Hide minor authors &and;";
$(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").prepend("<div class=\"button\">Show rows with minor work &or;</div>");
$("div#timeline div.button").hover(function() {{
$(this).addClass("hover");
}}, function() {{
$(this).removeClass("hover");
}}).toggle(function() {{
$("div#timeline div.button").toggle(function() {{
this.innerHTML = "Hide rows with minor work &and;"
$("div#timeline table.git tbody tr").show().each(colorRows);
}}, function() {{
@ -174,7 +166,7 @@
background-color: #ddcece;
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;
border: 1px solid #bbb;
cursor: hand;