diff -r 2990223a5b7f -r 9139536eab90 src/pyams_content/component/extfile/zmi/__init__.py --- a/src/pyams_content/component/extfile/zmi/__init__.py Sun Nov 26 09:50:28 2017 +0100 +++ b/src/pyams_content/component/extfile/zmi/__init__.py Sun Nov 26 09:51:48 2017 +0100 @@ -127,11 +127,13 @@ counter = ExtFilesCounter(self.context, self.request, self, None) counter.update() output.setdefault('events', []).append({ - 'event': 'PyAMS_content.changed_item', - 'options': {'handler': 'PyAMS_content.paragraphs.updateMarkers', - 'object_name': self.context.__name__, - 'marker_type': 'extfiles', - 'marker_tag': counter.render()} + 'event': 'myams.refresh', + 'options': { + 'handler': 'PyAMS_content.paragraphs.updateMarkers', + 'object_name': self.context.__name__, + 'marker_type': 'extfiles', + 'marker_tag': counter.render() + } }) return output @@ -229,11 +231,13 @@ counter = ExtImagesCounter(self.context, self.request, self, None) counter.update() output.setdefault('events', []).append({ - 'event': 'PyAMS_content.changed_item', - 'options': {'handler': 'PyAMS_content.paragraphs.updateMarkers', - 'object_name': self.context.__name__, - 'marker_type': 'extimages', - 'marker_tag': counter.render()} + 'event': 'myams.refresh', + 'options': { + 'handler': 'PyAMS_content.paragraphs.updateMarkers', + 'object_name': self.context.__name__, + 'marker_type': 'extimages', + 'marker_tag': counter.render() + } }) return output @@ -323,11 +327,13 @@ counter = ExtVideosCounter(self.context, self.request, self, None) counter.update() output.setdefault('events', []).append({ - 'event': 'PyAMS_content.changed_item', - 'options': {'handler': 'PyAMS_content.paragraphs.updateMarkers', - 'object_name': self.context.__name__, - 'marker_type': 'extvideos', - 'marker_tag': counter.render()} + 'event': 'myams.refresh', + 'options': { + 'handler': 'PyAMS_content.paragraphs.updateMarkers', + 'object_name': self.context.__name__, + 'marker_type': 'extvideos', + 'marker_tag': counter.render() + } }) return output @@ -416,11 +422,13 @@ counter = ExtAudiosCounter(self.context, self.request, self, None) counter.update() output.setdefault('events', []).append({ - 'event': 'PyAMS_content.changed_item', - 'options': {'handler': 'PyAMS_content.paragraphs.updateMarkers', - 'object_name': self.context.__name__, - 'marker_type': 'extaudios', - 'marker_tag': counter.render()} + 'event': 'myams.refresh', + 'options': { + 'handler': 'PyAMS_content.paragraphs.updateMarkers', + 'object_name': self.context.__name__, + 'marker_type': 'extaudios', + 'marker_tag': counter.render() + } }) return output