- 注册时间
- 2012-12-18
- 最后登录
- 2013-8-23
- 阅读权限
- 10
- 积分
- 66
- 精华
- 0
- 帖子
- 12
|
mini.open({
url: bootPATH + "../demo/CommonLibs/SelectGridWindow.html",
title: "选择列表",
width: 650,
height: 380,
ondestroy: function (action) {
//if (action == "close") return false;
if (action == "ok") {
var iframe = this.getIFrameEl(); //此处的代码如果放在页面引用的js中找不到该对象。
var data = iframe.contentWindow.GetData();
data = mini.clone(data); //必须
if (data) {
btnEdit.setValue(data.id);
btnEdit.setText(data.name);
}
}
}
});
mini.open 单独写在共用用的js文件中,以便重用。
function open(url, title, wd, hg, loadCallBack, closeCallback) {//弹出窗体 mini.open({ url: urlParams.addTokenParam(url), allowDrag: false, title: title, width: wd, height: hg, onload: function () {//窗体加载完毕时 if (loadCallBack != null) loadCallBack(); }, ondestroy: function (action) {//窗体关闭时 if (closeCallback != null) closeCallback(action); } });}
|
|