That's normal behavior, if you don't want the close on escape you'll have to
add that parameter. You could also write code to look for esc keypress and
then run your function.

$('.selector').dialog({ closeOnEscape: false });



-------------------------------------------------
Brandon Ryall
Software Developer
eMaint Enterprises LLC
438 N. Elmwood Road, Suite 201
Marlton, NJ 08053
P 856-810-2700 x7180
F 253-323-6353


On Mon, Oct 19, 2009 at 12:31 PM, Bohdan Ganicky
<[email protected]>wrote:

>
> Hi all,
>
> I've just come upon a weird dialog behavior. I have the simplest
> scenario possible. Pure dialog with close event set like this:
>
> $("#dialog").dialog({
>    close: function() {
>        ... // do whatever here, it just happens
>        window.location.reload(); // happens only when "close" is
> triggered by dialog's close button
>    }
> });
>
> See it for yourself: http://jsbin.com/aheyo
>
> I'm lost, thanks for any help.
>
> --
> Bohdan
> >
>

--~--~---------~--~----~------------~-------~--~----~
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