- 注册时间
- 2014-5-15
- 最后登录
- 2021-5-27
- 阅读权限
- 10
- 积分
- 872
- 精华
- 0
- 帖子
- 209
|
felt 发表于 2014-8-27 12:16
只能验证miniui控件,ckeditor是第三方控件
但是自定义jquery.uploadfiy上次控件,用miniui包装了下form.validate();却可以验证到
mini.AttachUpload = function () {
mini.AttachUpload.superclass.constructor.call(this);
}
mini.extend(mini.AttachUpload, mini.ValidatorBase, {
uiCls: "mini-attachupload",
_InputType : "file",
controlName : "",
tableObjectId : "",
fieldName : "",
allowInput:"",
fieldCnName : "",
verifyFieldId : "",
tableId : "",
formField: true,
_create: function () {
this.el = document.createElement("span");
this.el.className = "mini-attachupload";
},
initAttachUpload: function () {
this._valueEl.id = this.verifyFieldId;
this._valueEl.tableobject_id = this.tableObjectId;
this._valueEl.cnName = this.fieldCnName;
this.el.childNodes[1].id = this.fieldName + "_field_upload";
this.el.childNodes[2].id = this.fieldName + "_attachlist_fileQueue";
this.el.childNodes[2].name = this.fieldName + "_attachlist_fileQueue";
this.el.childNodes[3].value = this.tableId;
this.el.childNodes[4].id = this.fieldName + "_attachlist_attach_id";
this.el.childNodes[5].id = this.fieldName + "_attachmentList";
},
只是那个mini.hasClass(p,'mini-tabs-body') 有啥讲究。 |
|