jQuery MiniUI
标题:
更新后,buttonedit 居然失效了.
[打印本页]
作者:
才子
时间:
2012-5-22 00:42:47
标题:
更新后,buttonedit 居然失效了.
function onButtomselectEmployeeText(e) {
var buttonEdit = e.sender;
mini.openTop({
url: "/Employee/Selectd",
title: "选择员工",
width: 465,
height: 450,
onload: function () { },
ondestory: function (action) {
alert('');
if (action == "ok") {
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
data = mini.clone(data);
buttonEdit.setValue(data.text);
buttonEdit.setText(data.text);
}
}
});
}
复制代码
mini.parse(); var grid = mini.get("datagrid1"); grid.load();
function GetData() {
var rows = grid.getSelected();
var data = {};
data.id = rows.ID;
data.text = rows.FullName;
return data;
}
function onSelectionChanged(e) {
var action = "ok";
CloseWindow(action);
}
复制代码
未更新前 可用,更新后,触发不到 "ondestory" 事件.
作者:
fcrong
时间:
2012-5-22 08:55:23
ondestory 修改为 ondestroy
在前一个版本更新中有说明。
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2