Function not being called on dialog open
I would like the function dialog_close() to be called when the dialog opens. The web page has two buttons, one to open the dialog and the other to close the dialog. These buttons are just for testing, for now.
If you click the OPEN button the dialog opens but it never closes. If you then click the CLOSE button the dialog closes after a 3 second delay.
If you then click the OPEN button again, the dialog opens again. But, clicking the CLOSE button again does not cause the dialog to close, and neither can you close the dialog using the default close button.
So, I have two problems but for now can we just try and solve the first problem which is the function dialog_close() is not being called when the dialog opens?
Thanks,
TD