Dialog's "close" event when triggered by ESC weirdness.
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