src/pyams_content/shared/form/zmi/field.py
changeset 290 3c4cf9537da7
parent 228 f70686f44c7b
child 342 d4237323fa56
equal deleted inserted replaced
289:5ab6ce5c00fb 290:3c4cf9537da7
   325 
   325 
   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': 'myams.refresh',
   331                 'options': {'handler': 'PyAMS_content.fields.refreshField',
   331                 'options': {
   332                             'object_name': self.context.__name__,
   332                     'handler': 'PyAMS_content.fields.refreshField',
   333                             'title': II18n(self.context).query_attribute('label', request=self.request),
   333                     'object_name': self.context.__name__,
   334                             'visible': self.context.visible}
   334                     'title': II18n(self.context).query_attribute('label', request=self.request),
       
   335                     'visible': self.context.visible
       
   336                 }
   335             })
   337             })
   336         return output
   338         return output