web/views/tableview.py
changeset 7945 5959f94c0358
parent 7907 08320697ca1a
child 7946 72d60e921341
--- a/web/views/tableview.py	Thu Oct 13 09:25:26 2011 +0200
+++ b/web/views/tableview.py	Fri Oct 07 18:30:29 2011 +0200
@@ -99,6 +99,9 @@
         """
         req = self._cw
         req.add_js('jquery.tablesorter.js')
+        req.add_onload('jQuery("table.listing").tablesorter({'
+                           'textExtraction: cubicwebSortValueExtraction' # use our own function
+                       '});')
         req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
         # compute label first  since the filter form may remove some necessary
         # information from the rql syntax tree