src/pyams_content/shared/common/zmi/types.py
changeset 634 4e43b556a2a9
parent 591 b694d5667d17
child 826 eb16b1127e06
--- a/src/pyams_content/shared/common/zmi/types.py	Wed Jun 13 08:56:05 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/types.py	Wed Jun 13 08:58:20 2018 +0200
@@ -146,7 +146,9 @@
 
     def renderCell(self, item):
         return '<span data-ams-stop-propagation="true" ' \
-               '      data-ams-click-handler="PyAMS_content.types.switchSubtypes">' \
+               '      data-ams-click-handler="MyAMS.skin.switchCellContent" ' \
+               '      data-ams-switch-handler="get-subtypes-table.json" ' \
+               '      data-ams-switch-target=".subtypes">' \
                '    <span class="small hint" title="{hint}" data-ams-hint-gravity="e">' \
                '        <i class="fa fa-plus-square-o switch"></i>' \
                '    </span>' \
@@ -315,8 +317,6 @@
         attributes = super(DatatypeSubtypesTable, self).data_attributes
         attributes['table'] = {
             'id': self.id,
-            'data-ams-plugins': 'pyams_content',
-            'data-ams-plugin-pyams_content-src': get_resource_path(pyams_content),
             'data-ams-location': absolute_url(self.context, self.request),
             'data-ams-tablednd-drag-handle': 'td.sorter',
             'data-ams-tablednd-drop-target': 'set-subtypes-order.json'