Hi all, I have a jQuery dialog with the following as a parameter:
close: function(event, ui){
$('body').css('overflow','auto');
},
Now this behavior works when the user hits Esc (because closeOnEscape
remains true). But I've noticed that when I hit the "X" button and the dialog closes, the close event isn't called?
The same applies for a button that calls a "destroy" event on the dialog - even though the dialog closes, the above function isn't called.
Why is this?
Thanks!