用jquery easyui dialog控件 弹出一个窗体,这个窗体连接了一个新增页面,那当新增成功后怎么关闭

function add() {
parent.$.modalDialog({
title : '111',
width : 680,
height : 400,
href :'$'
buttons : [ {
text : '添加',
handler : function() {
parent.$.messager.confirm('添加对话框', '您要确认添加吗?', function(r)
{
parent.$.modalDialog.openner_dataGrid = dataGrid;//因为添加成功之后,需要刷新这个dataGrid,所以先预定义好
var f = parent.$.modalDialog.handler.find('#form');
f.submit();
});

}
},
{
text : "保存",
handler : function() {
parent.$.messager.confirm('确认对话框', '您要确认保存吗?', function(r)
{
});
}
},
{
text : "取消",
handler : function() {
}
}]
});
}
现在想点取消 想把这个Dialog关闭 应该怎么写啊

parent.$.modalDialog("close");

- -
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答