Changed JSON response
authorThierry Florac <thierry.florac@onf.fr>
Fri, 13 Oct 2017 08:30:00 +0200
changeset 215 8108753b99ba
parent 214 533d8603d145
child 216 724672199ef3
Changed JSON response
src/pyams_content/component/paragraph/zmi/header.py
--- a/src/pyams_content/component/paragraph/zmi/header.py	Fri Oct 13 08:29:43 2017 +0200
+++ b/src/pyams_content/component/paragraph/zmi/header.py	Fri Oct 13 08:30:00 2017 +0200
@@ -120,7 +120,7 @@
         if 'header' in changes.get(IHeaderParagraph, ()):
             output.setdefault('events', []).append({
                 'event': 'PyAMS_content.changed_item',
-                'options': {'object_type': 'paragraph',
+                '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}