src/pyams_content/shared/site/zmi/container.py
changeset 757 72e2df59af62
parent 731 a39cedc655ff
child 903 18b68cac6d5a
--- a/src/pyams_content/shared/site/zmi/container.py	Wed Jun 27 12:26:04 2018 +0200
+++ b/src/pyams_content/shared/site/zmi/container.py	Wed Jun 27 15:01:45 2018 +0200
@@ -203,7 +203,10 @@
         permission = self.permission
         if self.can_sort and ((not permission) or self.request.has_permission(permission, self.context)):
             classes.append('table-dnd')
-        return {'table': ' '.join(classes)}
+        return {
+            'table': ' '.join(classes),
+            'tr.selected': lambda item, col, row: 'current' if item is self.context else ''
+        }
 
     @property
     def data_attributes(self):