请问为什么打开的dialog默认会有form层呢?

提问 未结 2 5763
悬赏:20飞吻
请问为什么打开的dialog默认会有form层呢?如何避免,另外使用之前写好的方式无法打开dialog。
jQuery('#'+options.elementID).iDialog('openDialog', {
id: 'b',
title : options.title || '对话框',
width : '700',
height : '500',
minimizable : false,
maximizable : true,
closed: false,
cache: false,
modal : true,
closable : true,
href: options.uri,
onOpen: function() {
jQuery('.dialog-button').find('.l-btn-icon-left').addClass('dialogBtn');
jQuery('#'+options.formID).form('reset');
},
onBeforeClose : function (){
jQuery('#'+options.formID).form('reset');
},
buttons : [ {
text : options.submitText || '提交',
iconCls: 'fa fa-check-circle-o',
btnCls: 'topjui-btn-blue',
handler : function (){
if (submitHandler !=null){
submitHandler();
}else {
$.send(options.url, options.formID, options.tableID);
}
jQuery('#b').iDialog('close').form('reset')
}
}, {
text : options.cancelText || '取消',
iconCls: 'fa fa-times',
btnCls: 'topjui-btn-black',
handler : function (){
if (cancelHandler !=null){
cancelHandler()
}else {
jQuery('#b').iDialog('close').form('reset')
}
}
} ]
});
jQuery('#'+options.elementID).iDialog({
title : options.title || '对话框',
width : '700',
height : '500',
minimizable : false,
maximizable : true,
closed: false,
cache: false,
modal : true,
closable : true,
href: options.uri,
onOpen: function() {
jQuery('.dialog-button').find('.l-btn-icon-left').addClass('dialogBtn');
jQuery('#'+options.formID).form('reset');
},
onBeforeClose : function (){
jQuery('#'+options.formID).form('reset');
},
buttons : [ {
text : options.submitText || '提交',
iconCls: 'fa fa-check-circle-o',
btnCls: 'topjui-btn-blue',
handler : function (){
if (submitHandler !=null){
submitHandler();
}else {
$.send(options.url, options.formID, options.tableID);
}
jQuery('#'+options.elementID).iDialog('close')
}
}, {
text : options.cancelText || '取消',
iconCls: 'fa fa-times',
btnCls: 'topjui-btn-black',
handler : function (){
if (cancelHandler !=null){
cancelHandler()
}else {
jQuery('#'+options.elementID).iDialog('close')
}
}
} ]
});
回帖
回帖须知