ignoring close callback option for dialogs

ignoring close callback option for dialogs


Hi,
We have a situation where we provide close callback for a dialog like
this:
$(this.modalContent).dialog({ bgiframe:true, close:function()
{ something.focus() }, modal:true, resizable:false....});
This works fine when the user hits the "X" button at the upper right
hand corner as focus is placed in the appropriate spot.
If the user chooses to hit the "continue" button, we basically trigger
another dialog that contains some sort of Confirmation info. But
before we can do that we must close the current dialog that's already
open. However, by closing the dialog, the callback option is
triggered before the new dialog appears.
Is there a way to close the dialog such that if there is a callback
option passed in, it does not get triggered?
Thanks,
Shao