--- a/src/pyams_content/component/gallery/zmi/paragraph.py Thu Oct 12 22:31:46 2017 +0200
+++ b/src/pyams_content/component/gallery/zmi/paragraph.py Thu Oct 12 22:32:05 2017 +0200
@@ -122,11 +122,13 @@
updated = changes.get(IBaseGallery, ())
if 'title' in updated:
return {'status': 'success',
- 'event': 'PyAMS_content.changed_item',
- 'event_options': {'object_type': 'paragraph',
- 'object_name': self.context.__name__,
- 'title': II18n(self.context).query_attribute('title', request=self.request),
- 'visible': self.context.visible}}
+ 'events': [{
+ '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}
+ }]}
else:
return super(GalleryPropertiesAJAXEditForm, self).get_ajax_output(changes)