Browse Source

浏览器选项卡打开的内容管理文档,延迟1.5关闭以显示发布成功提示

unknown 5 years ago
parent
commit
a5a4467c74
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.app.close();
+            if( layout.inBrowser ){
+                window.setTimeout(function () {
+                    this.app.close();
+                }.bind(this), 1500)
+            }else{
+                this.app.close();
+            }
         }.bind(this));
 
         //}.bind(this))