src/pyams_content/shared/form/zmi/field.py
changeset 228 f70686f44c7b
parent 170 26aefef3d0aa
child 290 3c4cf9537da7
equal deleted inserted replaced
227:7a55458f64a7 228:f70686f44c7b
   326     def get_ajax_output(self, changes):
   326     def get_ajax_output(self, changes):
   327         output = super(FormFieldPropertiesAJAXEditForm, self).get_ajax_output(changes)
   327         output = super(FormFieldPropertiesAJAXEditForm, self).get_ajax_output(changes)
   328         if 'label' in changes.get(IFormField, ()):
   328         if 'label' in changes.get(IFormField, ()):
   329             output.setdefault('events', []).append({
   329             output.setdefault('events', []).append({
   330                 'event': 'PyAMS_content.changed_item',
   330                 'event': 'PyAMS_content.changed_item',
   331                 'options': {'object_type': 'form_field',
   331                 'options': {'handler': 'PyAMS_content.fields.refreshField',
   332                             'object_name': self.context.__name__,
   332                             'object_name': self.context.__name__,
   333                             'title': II18n(self.context).query_attribute('label', request=self.request),
   333                             'title': II18n(self.context).query_attribute('label', request=self.request),
   334                             'visible': self.context.visible}
   334                             'visible': self.context.visible}
   335             })
   335             })
   336         return output
   336         return output