equal
deleted
inserted
replaced
98 :param displayactions: if True, display action menu |
98 :param displayactions: if True, display action menu |
99 """ |
99 """ |
100 req = self._cw |
100 req = self._cw |
101 req.add_js('jquery.tablesorter.js') |
101 req.add_js('jquery.tablesorter.js') |
102 req.add_onload('jQuery("table.listing").tablesorter({' |
102 req.add_onload('jQuery("table.listing").tablesorter({' |
103 'textExtraction: cubicwebSortValueExtraction' # use our own function |
103 'textExtraction: cubicwebSortValueExtraction,' # use our own function |
|
104 'selectorHeaders: "thead tr:first th"' # only plug on the first row |
104 '});') |
105 '});') |
105 req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css')) |
106 req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css')) |
106 # compute label first since the filter form may remove some necessary |
107 # compute label first since the filter form may remove some necessary |
107 # information from the rql syntax tree |
108 # information from the rql syntax tree |
108 if mainindex is None: |
109 if mainindex is None: |