equal
deleted
inserted
replaced
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 |