PDA

View Full Version : 1.0a3r4 - Ext.MessageBox - cls is not defined



bloudon
15 Mar 2007, 7:19 AM
In 1.0 alpha 3 rev 4.

When using the cls option of Ext.MessageBox:


Ext.MessageBox.show({
title: 'Warning',
msg: 'A warning message',
cls: 'my-dlg-warning',
buttons: Ext.MessageBox.OK,
closable: false
});

... the error "cls is not defined" will be reported by Firebug when the OK button is clicked.

Error is fixed by changing the handleHide function in Ext.MessageBox from:


var handleHide = function(){
if(opt && opt.cls){
dlg.el.removeClass(cls);
}
};

... to:


var handleHide = function(){
if(opt && opt.cls){
dlg.el.removeClass(opt.cls);
}
};

jack.slocum
19 Mar 2007, 5:57 AM
Thank you.