Sort liaison statement list using js in the web client. See #1434

- Legacy-Id: 8050
This commit is contained in:
Emilio A. Sánchez López 2014-07-04 09:48:20 +00:00
parent abb74d9977
commit 8326a5a85e
4 changed files with 28 additions and 7 deletions

View file

@ -32,3 +32,16 @@
{% include "liaisons/liaison_table.html" %}
{% endblock %}
{% block js %}
<script type="text/javascript" src="/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#LiaisonListTable").tablesorter({
sortList: [[0, 1]]
});
}
);
</script>
{% endblock %}

View file

@ -89,15 +89,19 @@ span.fieldRequired {
background-color: #ffcc66;
}
th.sort a {
text-decoration: none;
color: white;
padding-right: 20px;
background: url(/images/sort-header-clear.png) no-repeat right center;
th.sort {
background-image: url(/images/sort-header-clear.png);
background-repeat: no-repeat;
background-position: right center;
cursor: pointer;
}
th.sorted a {
background: url(/images/sort-header-filled.png) no-repeat right center;
th.headerSortUp {
background-image: url(/images/sort-header-up-filled.png);
}
th.headerSortDown {
background-image: url(/images/sort-header-filled.png);
}
.noActionTaken, .actionTaken { padding: 2px 5px; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

4
static/js/jquery.tablesorter.min.js vendored Normal file

File diff suppressed because one or more lines are too long