113 def get_ajax_output(self, changes): |
113 def get_ajax_output(self, changes): |
114 updated = changes.get(IBaseGallery, ()) |
114 updated = changes.get(IBaseGallery, ()) |
115 if 'title' in updated: |
115 if 'title' in updated: |
116 return {'status': 'success', |
116 return {'status': 'success', |
117 'events': [{ |
117 'events': [{ |
118 'event': 'PyAMS_content.changed_item', |
118 'event': 'myams.refresh', |
119 'options': {'handler': 'PyAMS_content.paragraphs.refreshParagraph', |
119 'options': { |
120 'object_name': self.context.__name__, |
120 'handler': 'PyAMS_content.paragraphs.refreshParagraph', |
121 'title': II18n(self.context).query_attribute('title', request=self.request), |
121 'object_name': self.context.__name__, |
122 'visible': self.context.visible} |
122 'title': II18n(self.context).query_attribute('title', request=self.request), |
|
123 'visible': self.context.visible |
|
124 } |
123 }]} |
125 }]} |
124 else: |
126 else: |
125 return super(GalleryPropertiesAJAXEditForm, self).get_ajax_output(changes) |
127 return super(GalleryPropertiesAJAXEditForm, self).get_ajax_output(changes) |
126 |
128 |
127 |
129 |