|
@@ -1801,6 +1801,9 @@ U.UF.UI.form = function (title, content, formattr, formfun, headattr, contentatt
|
|
|
//所有的窗体中找到是否已经创建的窗体
|
|
|
if (formattr && U.UF.UI.form.allForm[formattr.id]) {
|
|
|
var _this = U.UF.UI.form.allForm[formattr.id]; //得到原来的窗体
|
|
|
+ if (U.UF.C.isElement(_this.content) && _this.content.tagName == "IFRAME") {
|
|
|
+ content = _this.content;
|
|
|
+ }
|
|
|
}
|
|
|
//初始化未赋值,用到的变量
|
|
|
else {
|
|
@@ -1809,6 +1812,7 @@ U.UF.UI.form = function (title, content, formattr, formfun, headattr, contentatt
|
|
|
//初始化成功后添加到所有窗体管理的对象中,以便于用户查找窗体和管理
|
|
|
U.UF.UI.form.allForm[this.id] = this;
|
|
|
}
|
|
|
+
|
|
|
_this.form; //窗体
|
|
|
_this.header; //头部
|
|
|
_this.middle; //中间区域
|
|
@@ -2094,9 +2098,7 @@ U.UF.UI.form.prototype = {
|
|
|
|
|
|
//如果窗体已经创建,那么直接替换
|
|
|
if (_replaceel && _replaceel.parentNode != null) {
|
|
|
- if (!(U.UF.C.isElement(this.content) && this.content.tagName == "IFRAME")) {
|
|
|
- _replaceel.parentNode.replaceChild(_formel, _replaceel);
|
|
|
- }
|
|
|
+ _replaceel.parentNode.replaceChild(_formel, _replaceel);
|
|
|
}
|
|
|
//元素添加到制定的元素中
|
|
|
else {
|