gnosis
30 Aug 2007, 9:24 AM
Hello all,
I'd like to make all confirm dialogs non-closable so that the user must use the yes/no buttons and doesn't have the upper-right x as an option. There must be something that I don't understand about how override works, because the following code bombs my app with an error "p has no properties". All I've done is copy the confirm function verbatim from the source and plopped it into an override with the closable param added to the config. What's wrong here?
Thanks,
G
Ext.override(Ext.MessageBox, {
confirm : function(title, msg, fn, scope){
this.show({
title : title,
msg : msg,
buttons: this.YESNO,
fn: fn,
scope : scope,
closable : false
});
return this;
}
});
I'd like to make all confirm dialogs non-closable so that the user must use the yes/no buttons and doesn't have the upper-right x as an option. There must be something that I don't understand about how override works, because the following code bombs my app with an error "p has no properties". All I've done is copy the confirm function verbatim from the source and plopped it into an override with the closable param added to the config. What's wrong here?
Thanks,
G
Ext.override(Ext.MessageBox, {
confirm : function(title, msg, fn, scope){
this.show({
title : title,
msg : msg,
buttons: this.YESNO,
fn: fn,
scope : scope,
closable : false
});
return this;
}
});