Commit 83669220 authored by Michal Čihař's avatar Michal Čihař

Fix table sorting

parent f806332f
......@@ -3,7 +3,8 @@
<table class="sort">
<thead>
<tr>
<th colspan="2">{% if show_language == 1 %}{% trans "Language" %}{% else %}{% trans "Project" %}{% endif %}</th>
<th>{% if show_language == 1 %}{% trans "Language" %}{% else %}{% trans "Project" %}{% endif %}</th>
<th></th>
<th colspan="2">{% trans "Translated" %}</th>
<th>{% trans "Fuzzy" context "Number of fuzzy strings" %}</th>
<th>{% trans "Checks" context "Number of failing checks" %}</th>
......
......@@ -163,7 +163,7 @@ function load_table_sorting() {
return;
}
// Second column contains percent with colspan
if (thIndex >= 1 && !table.hasClass('simple')) {
if (thIndex >= 2 && !table.hasClass('simple')) {
thIndex += 1;
}
th.attr('title', gettext("Sort this column")).addClass('sort').append('<span class="sort ui-icon ui-icon-carat-2-n-s" />');
......
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