Skip to content

Commit 8326a5a

Browse files
committed
Sort liaison statement list using js in the web client. See ietf-tools#1434
- Legacy-Id: 8050
1 parent abb74d9 commit 8326a5a

4 files changed

Lines changed: 28 additions & 7 deletions

File tree

ietf/templates/liaisons/overview.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,16 @@ <h1>Liaison Statements</h1>
3232
{% include "liaisons/liaison_table.html" %}
3333

3434
{% endblock %}
35+
36+
{% block js %}
37+
<script type="text/javascript" src="/js/jquery.tablesorter.min.js"></script>
38+
<script type="text/javascript">
39+
$(document).ready(function()
40+
{
41+
$("#LiaisonListTable").tablesorter({
42+
sortList: [[0, 1]]
43+
});
44+
}
45+
);
46+
</script>
47+
{% endblock %}

static/css/liaisons.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,19 @@ span.fieldRequired {
8989
background-color: #ffcc66;
9090
}
9191

92-
th.sort a {
93-
text-decoration: none;
94-
color: white;
95-
padding-right: 20px;
96-
background: url(/images/sort-header-clear.png) no-repeat right center;
92+
th.sort {
93+
background-image: url(/images/sort-header-clear.png);
94+
background-repeat: no-repeat;
95+
background-position: right center;
96+
cursor: pointer;
97+
}
98+
99+
th.headerSortUp {
100+
background-image: url(/images/sort-header-up-filled.png);
97101
}
98102

99-
th.sorted a {
100-
background: url(/images/sort-header-filled.png) no-repeat right center;
103+
th.headerSortDown {
104+
background-image: url(/images/sort-header-filled.png);
101105
}
102106

103107
.noActionTaken, .actionTaken { padding: 2px 5px; }
341 Bytes
Loading

static/js/jquery.tablesorter.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)