View Full Version : MessageBox.alert OK onclick?

20 Nov 2012, 1:03 PM
Is it possible to attach a function to the onclick of the OK button in a MessageBox.alert window? I need to have it re-open the MessageBox that it just replaced.

if (e.exists) {
Ext.MessageBox.alert('Create new array', 'That array already exists. Please provide a unique name.');
} else {
this.fireEvent('create', this, { Name: workflowName, ArrayName: workflowName });

20 Nov 2012, 1:44 PM
Of course I managed to overlook the callback part in the doc. Never mind! :)