|
@@ -1886,6 +1886,7 @@ U.UF.UI.form.prototype = {
|
|
|
_contentattr = this.contentattr || {}, //内容的属性
|
|
|
_replaceel = U.UF.UI.form.allForm[_formattr.id] ? U.UF.UI.form.allForm[_formattr.id].form : null //得到之前创建的窗体,如果窗体存在,那么下面创建后直接替换
|
|
|
;
|
|
|
+
|
|
|
//窗体的统一属性设置,默认属性
|
|
|
if (_formattr.style) {
|
|
|
_formattr.style.cssText = _formattr.style.cssText || "";
|
|
@@ -1925,7 +1926,7 @@ U.UF.UI.form.prototype = {
|
|
|
});
|
|
|
}
|
|
|
//创建大窗体,设置窗体属性
|
|
|
- var _formel = $$("div", this.formattr);
|
|
|
+ var _formel = $$("div", _formattr);
|
|
|
//判断是否允许一直置顶
|
|
|
if (this.istop === true) {
|
|
|
_formel.style.zIndex = "9999";
|
|
@@ -1977,17 +1978,7 @@ U.UF.UI.form.prototype = {
|
|
|
cssText: "text-align: left; "
|
|
|
};
|
|
|
}
|
|
|
- //创建中间内容元素
|
|
|
- _contentchildel = $$("div", _contentattr, _contentel);
|
|
|
- //如果是字符串的处理
|
|
|
- if (U.UF.C.isString(this.content)) {
|
|
|
- _contentchildel.innerHTML = this.content;
|
|
|
- }
|
|
|
- //如果中间区域是元素的处理
|
|
|
- else if (U.UF.C.isElement(this.content)) {
|
|
|
- _contentchildel.appendChild(this.content); //添加所选元素
|
|
|
- }
|
|
|
- this.middle = _contentchildel; //中间的内容
|
|
|
+
|
|
|
//在头部不存在的情况下,设置中间内容可以拖动
|
|
|
if (this.title === false && this.isdrag) {
|
|
|
_contentel.onmousedown = function () {
|
|
@@ -2104,6 +2095,19 @@ U.UF.UI.form.prototype = {
|
|
|
else {
|
|
|
this.parentel.appendChild(_formel);
|
|
|
}
|
|
|
+
|
|
|
+ //创建中间内容元素
|
|
|
+ _contentchildel = $$("div", _contentattr, _contentel);
|
|
|
+ //如果是字符串的处理
|
|
|
+ if (U.UF.C.isString(this.content)) {
|
|
|
+ _contentchildel.innerHTML = this.content;
|
|
|
+ }
|
|
|
+ //如果中间区域是元素的处理
|
|
|
+ else if (U.UF.C.isElement(this.content)) {
|
|
|
+ _contentchildel.appendChild(this.content); //添加所选元素
|
|
|
+ }
|
|
|
+ this.middle = _contentchildel; //中间的内容
|
|
|
+
|
|
|
//如果没有设置top和left那么居中弹出
|
|
|
if (_formel.style.top == "" && _formel.style.left == "" && _formel.style.right == "" && _formel.style.bottom == "") {
|
|
|
//居中置顶弹出
|