--- a/src/pyams_content/component/paragraph/zmi/video.py Sun Nov 26 09:50:28 2017 +0100
+++ b/src/pyams_content/component/paragraph/zmi/video.py Sun Nov 26 09:51:48 2017 +0100
@@ -189,13 +189,12 @@
form = VideoParagraphPropertiesInnerEditForm(self.context, self.request)
form.update()
output.setdefault('events', []).append({
- 'event': 'PyAMS_content.changed_item',
- 'options': {'handler': 'PyAMS_content.refreshForm',
- 'object_name': '{0}_{1}_{2}'.format(
+ 'event': 'myams.refresh',
+ 'options': {'object_id': '{0}_{1}_{2}'.format(
self.context.__class__.__name__,
getattr(form.getContent(), '__name__', 'noname').replace('++', ''),
form.id),
- 'form': form.render()}
+ 'content': form.render()}
})
return output