diff -r 2990223a5b7f -r 9139536eab90 src/pyams_content/component/association/zmi/__init__.py --- a/src/pyams_content/component/association/zmi/__init__.py Sun Nov 26 09:50:28 2017 +0100 +++ b/src/pyams_content/component/association/zmi/__init__.py Sun Nov 26 09:51:48 2017 +0100 @@ -62,10 +62,10 @@ return {'status': 'success', 'message': self.request.localizer.translate(_("Association was correctly added.")), 'events': [{ - 'event': 'PyAMS_content.changed_item', + 'event': 'myams.refresh', 'options': { 'handler': 'PyAMS_content.associations.refreshAssociations', - 'object_name': associations_table.id, + 'object_id': associations_table.id, 'table': associations_table.render() } }]} @@ -81,10 +81,10 @@ return {'status': 'success', 'message': self.request.localizer.translate(self.successMessage), 'events': [{ - 'event': 'PyAMS_content.changed_item', + 'event': 'myams.refresh', 'options': { 'handler': 'PyAMS_content.associations.refreshAssociations', - 'object_name': associations_table.id, + 'object_id': associations_table.id, 'table': associations_table.render() } }]} @@ -294,7 +294,7 @@ return {'status': 'success', 'handle_json': True, 'events': [{ - 'event': 'PyAMS_content.changed_item', + 'event': 'myams.refresh', 'options': {'handler': 'PyAMS_content.paragraphs.updateToolbar', 'object_name': parent.__name__, 'toolbar_tag': viewlet.render()}