|
Model.prototype.button1Click = function(event){
Message.message("aler", "通过代码动态创建MessageDialog");
if (!this.msg)
this.msg = new MsgDialog({
parentNode : this.getElementByXid("window")
});
this.msg.on('onClose', function(event) {
if(event.input==123456){
justep.Util.hint('打开成功');
}else{
justep.Util.hint('密码错误');
}
}, this);
this.msg.show({
type : this.type,
title : this.title,
message :null,
inputValue : this.inputValue,
width : this.width
});
};
代码是这样的,会弹出一个dialog但是不管我点击确定还是取消都会执行this.msg.on('onClose', function(event),应该怎么修改才能让点击确定是确定的点击事件,取消是取消的点击事件 |
|