Răsfoiți Sursa

Merge branch 'cherry-pick-9bc74525' into 'wrdp'

Merge branch 'fix/error_content_is_true' into 'master'

See merge request o2oa/o2oa!2491
胡起 5 ani în urmă
părinte
comite
b16c5be5ec
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      o2web/source/x_component_Common/Main.js

+ 1 - 1
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);