src/pyams_content/component/paragraph/zmi/header.py
changeset 283 9139536eab90
parent 245 6b02caf97666
child 406 5527bc086216
equal deleted inserted replaced
282:2990223a5b7f 283:9139536eab90
   109 
   109 
   110     def get_ajax_output(self, changes):
   110     def get_ajax_output(self, changes):
   111         output = super(HeaderParagraphPropertiesAJAXEditForm, self).get_ajax_output(changes)
   111         output = super(HeaderParagraphPropertiesAJAXEditForm, self).get_ajax_output(changes)
   112         if 'header' in changes.get(IHeaderParagraph, ()):
   112         if 'header' in changes.get(IHeaderParagraph, ()):
   113             output.setdefault('events', []).append({
   113             output.setdefault('events', []).append({
   114                 'event': 'PyAMS_content.changed_item',
   114                 'event': 'myams.refresh',
   115                 'options': {'handler': 'PyAMS_content.paragraphs.refreshParagraph',
   115                 'options': {
   116                             'object_name': self.context.__name__,
   116                     'handler': 'PyAMS_content.paragraphs.refreshParagraph',
   117                             'title': II18n(self.context).query_attribute('title', request=self.request),
   117                     'object_name': self.context.__name__,
   118                             'visible': self.context.visible}
   118                     'title': II18n(self.context).query_attribute('title', request=self.request),
       
   119                     'visible': self.context.visible
       
   120                 }
   119             })
   121             })
   120         return output
   122         return output
   121 
   123 
   122 
   124 
   123 @adapter_config(context=(IHeaderParagraph, IPyAMSLayer), provides=IParagraphInnerEditor)
   125 @adapter_config(context=(IHeaderParagraph, IPyAMSLayer), provides=IParagraphInnerEditor)