Parcourir la source

Merge branch 'cherry-pick-0533bb1d' into 'release'

Merge branch 'fix/CMS_DOC_closeDelay' into 'wrdp'

See merge request o2oa/o2oa!2392
蔡祥熠 il y a 5 ans
Parent
commit
4350405a56
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      o2web/source/x_component_cms_Xform/Form.js

+ 7 - 1
o2web/source/x_component_cms_Xform/Form.js

@@ -479,7 +479,13 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class({
                 }
                 this.options.saveOnClose = false;
             }
-            this.app.close();
+            if( layout.inBrowser ){
+                window.setTimeout(function () {
+                    this.app.close();
+                }.bind(this), 1500)
+            }else{
+                this.app.close();
+            }
         }.bind(this));
 
         //}.bind(this))