--- a/src/pyams_content/component/illustration/zmi/__init__.py Sun Nov 26 09:50:28 2017 +0100
+++ b/src/pyams_content/component/illustration/zmi/__init__.py Sun Nov 26 09:51:48 2017 +0100
@@ -147,23 +147,26 @@
form.update()
illustration = form.getContent()
output.setdefault('events', []).append({
- 'event': 'PyAMS_content.changed_item',
- 'options': {'handler': 'PyAMS_content.refreshForm',
- 'object_name': '{0}_{1}_{2}'.format(
- self.context.__class__.__name__,
- getattr(illustration, '__name__', 'noname').replace('++', ''),
- form.id),
- 'form': form.render()}
+ 'event': 'myams.refresh',
+ 'options': {
+ 'object_id': '{0}_{1}_{2}'.format(
+ self.context.__class__.__name__,
+ getattr(illustration, '__name__', 'noname').replace('++', ''),
+ form.id),
+ 'content': form.render()
+ }
})
viewlet = ParagraphContainerIllustrationMarker(self.context, self.request, self, None)
if viewlet is not None:
viewlet.update()
output.setdefault('events', []).append({
- 'event': 'PyAMS_content.changed_item',
- 'options': {'handler': 'PyAMS_content.paragraphs.updateMarkers',
- 'object_name': self.context.__name__,
- 'marker_type': 'illustration',
- 'marker_tag': viewlet.render() if viewlet is not None else ''}
+ 'event': 'myams.refresh',
+ 'options': {
+ 'handler': 'PyAMS_content.paragraphs.updateMarkers',
+ 'object_name': self.context.__name__,
+ 'marker_type': 'illustration',
+ 'marker_tag': viewlet.render() if viewlet is not None else ''
+ }
})
return output