equal
deleted
inserted
replaced
200 output = super(GalleryFileInfoPropertiesAJAXEditForm, self).get_ajax_output(changes) |
200 output = super(GalleryFileInfoPropertiesAJAXEditForm, self).get_ajax_output(changes) |
201 if 'title' in changes.get(IGalleryFile, ()): |
201 if 'title' in changes.get(IGalleryFile, ()): |
202 gallery = get_parent(self.context, IGallery) |
202 gallery = get_parent(self.context, IGallery) |
203 if gallery is not None: |
203 if gallery is not None: |
204 output.setdefault('events', []).append({ |
204 output.setdefault('events', []).append({ |
205 'event': 'PyAMS_content.changed_item', |
205 'event': 'myams.refresh', |
206 'options': { |
206 'options': { |
207 'handler': 'PyAMS_content.galleries.updateImageTitle', |
207 'handler': 'PyAMS_content.galleries.updateImageTitle', |
208 'image_id': 'image_{0}_{1}'.format(gallery.__name__, self.context.__name__), |
208 'image_id': 'image_{0}_{1}'.format(gallery.__name__, self.context.__name__), |
209 'title': II18n(self.context).query_attribute('title', request=self.request) |
209 'title': II18n(self.context).query_attribute('title', request=self.request) |
210 } |
210 } |