summaryrefslogtreecommitdiffstats
path: root/templates/todolists
diff options
context:
space:
mode:
Diffstat (limited to 'templates/todolists')
-rw-r--r--templates/todolists/view.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index b5f9a32..504c8cb 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -69,8 +69,20 @@
return false;
});
});
+$.tablesorter.addParser({
+ id: 'todostatus',
+ is: function(s) { return false; },
+ format: function(s) {
+ return s.match(/incomplete/) ? 1 : 0;
+ },
+ type: 'numeric'
+});
$(document).ready(function() {
- $(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0], [1,0]]});
+ $(".results").tablesorter({
+ widgets: ['zebra'],
+ sortList: [[0,0], [1,0]],
+ headers: { 4: { sorter: 'todostatus' } }
+ });
});
</script>
{% endblock %}