Hi,
I've registered a handler for when the dialog state is changing. However I don't see it being called:
var dialog = $("#dialog"); dialog.on("igdialogstatechanging", function (event, ui) { console.debug("Event igdialogstatechanging"); if (ui.action == "close") { // do something } });
Can you please advise?
Thanks,
Jose
Thank Ivaylo, I figured out I was not using the right selector in my jquery call. Now I see the handler being called on close.
Hello Jose,
I can’t see anything wrong with the implementation you are using, as this handler is working ok. I have created jsfiddle code sample and you can see it working at http://jsfiddle.net/cabrftxw/1/ . Please take a look at it and compare it with your approach, so you can update it if necessary.