Added message to reload status
authorThierry Florac <thierry.florac@onf.fr>
Fri, 09 Feb 2018 12:34:19 +0100
changeset 386 6770cd1b3760
parent 385 6310e9a80209
child 387 ae83911a4ed4
Added message to reload status
src/pyams_content/shared/common/zmi/properties.py
--- a/src/pyams_content/shared/common/zmi/properties.py	Fri Feb 09 12:17:58 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/properties.py	Fri Feb 09 12:34:19 2018 +0100
@@ -98,7 +98,8 @@
     def get_ajax_output(self, changes):
         wf_changes = changes.get(IBaseContent, ())
         if 'title' in wf_changes:
-            return {'status': 'reload'}
+            return {'status': 'reload',
+                    'message': self.request.localizer.translate(self.successMessage)}
         else:
             return super(SharedContentPropertiesAJAXEditForm, self).get_ajax_output(changes)