Updated refresh event
authorThierry Florac <thierry.florac@onf.fr>
Fri, 07 Sep 2018 17:31:10 +0200
changeset 938 eb83447d4c68
parent 937 b9c5249db72b
child 939 0695d8571616
Updated refresh event
src/pyams_content/component/paragraph/zmi/milestone.py
--- a/src/pyams_content/component/paragraph/zmi/milestone.py	Fri Sep 07 16:41:57 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/milestone.py	Fri Sep 07 17:31:10 2018 +0200
@@ -351,8 +351,7 @@
 
     def get_ajax_output(self, changes):
         output = super(self.__class__, self).get_ajax_output(changes)
-        updated = changes.get(IMilestone, ())
-        if ('title' in updated) or ('anchor' in updated):
+        if changes:
             target = get_parent(self.context, IMilestoneContainerTarget)
             output.setdefault('events', []).append(get_json_table_row_refresh_event(target, self.request,
                                                                                     MilestonesTable, self.context))