--- a/src/pyams_content/component/paragraph/zmi/pictogram.py Tue Oct 09 15:05:38 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/pictogram.py Tue Oct 09 15:06:10 2018 +0200
@@ -124,6 +124,14 @@
edit_permission = MANAGE_CONTENT_PERMISSION
+ def get_ajax_output(self, changes):
+ output = super(self.__class__, self).get_ajax_output(changes)
+ updated = changes.get(IPictogramParagraph, ())
+ if 'renderer' in updated:
+ output.setdefault('events', []).append(
+ get_json_widget_refresh_event(self.context, self.request, PictogramParagraphInnerEditForm, 'renderer'))
+ return output
+
@adapter_config(context=(IPictogramParagraph, IPyAMSLayer), provides=IParagraphInnerEditor)
@ajax_config(name='inner-properties.json', context=IPictogramParagraph, layer=IPyAMSLayer,
@@ -141,14 +149,6 @@
else:
return button.Buttons()
- def get_ajax_output(self, changes):
- output = super(self.__class__, self).get_ajax_output(changes)
- updated = changes.get(IPictogramParagraph, ())
- if 'renderer' in updated:
- output.setdefault('events', []).append(
- get_json_widget_refresh_event(self.context, self.request, PictogramParagraphInnerEditForm, 'renderer'))
- return output
-
#
# Pictogram items table view