Browse Source

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

Merge branch 'fix/CMS_DOC_closeDelay' into 'wrdp'

See merge request o2oa/o2oa!2392
蔡祥熠 5 years ago
parent
commit
4350405a56
1 changed files with 7 additions and 1 deletions
  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.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));
 
 
         //}.bind(this))
         //}.bind(this))