From e8ab46d54ae372a0edc8d1ff6dbcaf6559f42f14 Mon Sep 17 00:00:00 2001 From: huqi Date: Thu, 10 Dec 2020 17:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8=E6=89=93?= =?UTF-8?q?=E5=BC=80=E6=97=B6this.content=E8=B5=8B=E5=80=BC=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_Common/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/o2web/source/x_component_Common/Main.js b/o2web/source/x_component_Common/Main.js index 3c7b5f9b1f..652cc4f4b4 100644 --- a/o2web/source/x_component_Common/Main.js +++ b/o2web/source/x_component_Common/Main.js @@ -250,7 +250,7 @@ MWF.xApplication.Common.Main = new Class({ this.window.titleText.set("text", this.options.title); } catch (e) { } - this.window.content = content; + if (content && O2.typeOf(content)==="element") this.window.content = content; if (!this.window.content) this.window.content = $("appContent") || $("layout"); if (!this.window.content) { this.window.content = new Element("div", {"styles": {"width": 0, "height": 0}}).inject(document.body); -- GitLab