diff options
author | Dan McGee <dan@archlinux.org> | 2010-08-27 16:20:14 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-27 16:20:14 +0200 |
commit | e247e0dd8c1cd6e27be4ec12de9038cc492faf0a (patch) | |
tree | ee876a6ac0d7723e52647368e42c07c9d3a7fe9f /templates/todolists | |
parent | ecdd4ad6dae62594acefb4e8650e405871775479 (diff) | |
download | archweb-e247e0dd8c1cd6e27be4ec12de9038cc492faf0a.tar.gz archweb-e247e0dd8c1cd6e27be4ec12de9038cc492faf0a.tar.xz |
Add table sorting to a handful of pages
Anything that it makes sense to add it to gets the treatment here. Anything
with pagination can wait as that will be tougher. We also need to deal with
odd/even formatting.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists')
-rw-r--r-- | templates/todolists/list.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/todolists/list.html b/templates/todolists/list.html index 60e347d..bbd39f3 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -36,6 +36,12 @@ {% endfor %} </tbody> </table> - -</div><!-- #dev-todo --> +</div> +{% load cdn %}{% jquery %} +<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script> +<script type="text/javascript"> +$(document).ready(function() { + $(".results").tablesorter({sortList: [[1,1]]}); +}); +</script> {% endblock %} |