web/htmlwidgets.py
changeset 5727 29afb9e715bb
parent 5503 5b7eb0839da3
child 6140 65a619eb31c4
--- a/web/htmlwidgets.py	Fri Jun 11 07:58:52 2010 +0200
+++ b/web/htmlwidgets.py	Fri Jun 11 07:58:53 2010 +0200
@@ -307,8 +307,8 @@
     self._cw.add_js('jquery.tablesorter.js')
     self._cw.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
     """
-    highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \
-                "onmouseout=\"removeElementClass(this, 'highlighted');\""
+    highlight = "onmouseover=\"$(this).addClass('highlighted');\" " \
+                "onmouseout=\"$(this).removeClass('highlighted');\""
 
     def __init__(self, model):
         self.model = model