客户要求修改确定按钮弹出的对话框,使之更人性化,最后重写Extjs的confirm函数,如下:
Ext.MessageBox.confirm = function(title,msg, fn,scope) {
this.show({
title : title
msg : msg,
icon: Ext.MessageBox.QUESTION ,
buttons : {
yes : '确定',
no : '取消'
},
fn: fn,
scope: scope
});
return this;
}