From ef52b1452bef344ec90f0d88f3f7642f3ef6347f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 1 Dec 2011 23:46:51 +0100 Subject: [PATCH] add sortable data to table, and re odd/even columns after a filter (#1088) --- tabellio/webviews/deputy_listform.pt | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/tabellio/webviews/deputy_listform.pt b/tabellio/webviews/deputy_listform.pt index cfe1750..5856617 100644 --- a/tabellio/webviews/deputy_listform.pt +++ b/tabellio/webviews/deputy_listform.pt @@ -67,21 +67,22 @@ - + - + - - - - + + + @@ -165,6 +166,12 @@ jq('#deputy-search div a').click( }); jq('#form-name input').keyup(refreshtable); +jq(function() { + /* we bind it later, after table_sorter.js had its turn + (this is probably fragile) */ + jq('table.listing:not(.nosort) thead th:not(.nosort)').click( + function() { console.log('ref'); refreshtable(); }); +}); refreshtable();
Nom / PrénomNom / Prénom Groupe ArrondissementNaissanceNaissance
+ - - + +