equal
deleted
inserted
replaced
305 When using remember to include the required css and js with: |
305 When using remember to include the required css and js with: |
306 |
306 |
307 self._cw.add_js('jquery.tablesorter.js') |
307 self._cw.add_js('jquery.tablesorter.js') |
308 self._cw.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css')) |
308 self._cw.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css')) |
309 """ |
309 """ |
310 highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \ |
310 highlight = "onmouseover=\"$(this).addClass('highlighted');\" " \ |
311 "onmouseout=\"removeElementClass(this, 'highlighted');\"" |
311 "onmouseout=\"$(this).removeClass('highlighted');\"" |
312 |
312 |
313 def __init__(self, model): |
313 def __init__(self, model): |
314 self.model = model |
314 self.model = model |
315 self.columns = [] |
315 self.columns = [] |
316 |
316 |