web/htmlwidgets.py
changeset 5727 29afb9e715bb
parent 5503 5b7eb0839da3
child 6140 65a619eb31c4
equal deleted inserted replaced
5726:c3b99606644d 5727:29afb9e715bb
   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