No need to modify the code. You can provide the effect name as a string:

$("#dialog").dialog({
  hide: "fadeOut"
});

or you can provide a hash if you have additional options, such as:

$("#dialog").dialog({
  hide: {effect: "fadeOut", duration: 5000}
});

- Richard

On Tue, Mar 10, 2009 at 6:15 PM, Paradime Web
<[email protected]>wrote:

>
> Is it possible to do this with 1.7 ?
>
> I want the dialog to fadeOut on close. Right now,  I have to modify
> the code as follows:
>
> if (this.options.hide == "fadeOut") {
>                this.uiDialog.fadeOut(1000, function() {
>                    self._trigger('close', event);
>                });
>            }
>            else {
>                this.uiDialog.hide();
>                this._trigger('close', event);
>            }
>
> Thanks,
>
> On Feb 20, 2:15 am, Paradime Web <[email protected]> wrote:
> > Is it possible to have a fadeOut effect on dialog close?
> >
> > From the source, I can see the line:
> >
> > uiDialog.hide(options.hide);
> >
> > What kind of hide options can we pass in? Seems very limited to either
> > 'fast' 'slow'. I just want it to fade in and out.
> >
> > Thanks,
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to