src/pyams_content/shared/imagemap/zmi/container.py
branchdoc-dc
changeset 668 a63bc2aa60bb
parent 527 5dd1aa8bedd9
child 674 324e4f5a378b
--- a/src/pyams_content/shared/imagemap/zmi/container.py	Wed Jun 13 15:38:26 2018 +0200
+++ b/src/pyams_content/shared/imagemap/zmi/container.py	Wed Jun 13 16:17:57 2018 +0200
@@ -89,11 +89,12 @@
     @property
     def data_attributes(self):
         attributes = super(ImagemapAreasTable, self).data_attributes
-        attributes['table'] = {
+        attributes.setdefault('table', {}).update({
+            'id': self.id,
             'data-ams-location': absolute_url(self.context, self.request),
             'data-ams-datatable-sort': 'false',
             'data-ams-datatable-pagination': 'false'
-        }
+        })
         return attributes
 
     @reify