Commit b4a921b0 authored by Claude Paroz's avatar Claude Paroz

Make table sorting work on all columns (Fixes #653622)

parent a0251133
......@@ -74,6 +74,11 @@ table.tablesorter thead tr .headerSortDown {
background-image: url(../img/desc.gif);
}
table.tablesorter th.headerNoSort {
background-color: #EEEEEE;
border-bottom: #AAAAAA solid 1px;
}
h2 {
width: 100%;
margin-top: 1.5em;
......
......@@ -7,7 +7,7 @@
<script type="text/javascript">
$(document).ready(function()
{
$("#stats-table").tablesorter();
$("#stats-table").tablesorter({headers: {3:{sorter: false}}});
$("#stats-table").bind("sortStart",function() {
/* Hide category subheaders when sorting */
$("tr.subheader").hide();
......
......@@ -19,7 +19,8 @@
<table class="tablesorter" name="stats-table" id="stats-table">
<thead>
<tr><th>{% trans "Module" %}</th><th>{% trans "Branch" %}</th>
<th colspan="2">{% trans "Statistics" %}</th>
{# colspan=2 for Statistics is causing offset in sort effect for following columns #}
<th>{% trans "Statistics" %}</th><th class="headerNoSort"></th>
<th>{% trans "Status" %}</th><th>{% trans "Date" %}</th>
</tr>
</thead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment