Don't close form when automatic submit is on
authorThierry Florac <thierry.florac@onf.fr>
Wed, 20 Jun 2018 14:04:53 +0200
changeset 121 a7c7efdc532b
parent 120 4f2a1d921a4e
child 122 4fcb3a5afa91
Don't close form when automatic submit is on
src/pyams_portal/zmi/layout.py
--- a/src/pyams_portal/zmi/layout.py	Wed Jun 20 08:26:22 2018 +0200
+++ b/src/pyams_portal/zmi/layout.py	Wed Jun 20 14:04:53 2018 +0200
@@ -521,6 +521,8 @@
                         'preview': previewer.render()
                     }
                 })
+        if 'autosubmit' in request.params:
+            changes['close_form'] = False
         return changes