src/pyams_content/component/paragraph/zmi/header.py
changeset 283 9139536eab90
parent 245 6b02caf97666
child 406 5527bc086216
--- a/src/pyams_content/component/paragraph/zmi/header.py	Sun Nov 26 09:50:28 2017 +0100
+++ b/src/pyams_content/component/paragraph/zmi/header.py	Sun Nov 26 09:51:48 2017 +0100
@@ -111,11 +111,13 @@
         output = super(HeaderParagraphPropertiesAJAXEditForm, self).get_ajax_output(changes)
         if 'header' in changes.get(IHeaderParagraph, ()):
             output.setdefault('events', []).append({
-                'event': 'PyAMS_content.changed_item',
-                'options': {'handler': 'PyAMS_content.paragraphs.refreshParagraph',
-                            'object_name': self.context.__name__,
-                            'title': II18n(self.context).query_attribute('title', request=self.request),
-                            'visible': self.context.visible}
+                'event': 'myams.refresh',
+                'options': {
+                    'handler': 'PyAMS_content.paragraphs.refreshParagraph',
+                    'object_name': self.context.__name__,
+                    'title': II18n(self.context).query_attribute('title', request=self.request),
+                    'visible': self.context.visible
+                }
             })
         return output