#5038 closed bug (worksforme)
dialog close event not captured if specified in options
Reported by: | lsiden | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.dialog | Version: | 1.7.2 |
Keywords: | dialog close event handler | Cc: | |
Blocked by: | Blocking: |
Description
Hi. This ticket may be related to #3837 which has been closed. I am entering a new one because #3837 related to version 1.5.2 and I have 1.7.2 now.
When I specify a 'close' event handler in the $.(...).dialog() initializer, it is never called. I tried this in both FF 3.5.6 and Google Chrome 4.0.249.43, and Opera 10.10. I don't have IE on any of my boxes, so I wasn't able to test it there.
On the other hand, if I specify a handler with the bind('dialogclose', <handler>) function, that handler does get called when the dialog closes, except on Opera 10.10.
You can see this in the file index.html (attached) lines 34 and 39, or you can download and run the entire site from your box if you want (it's 1.5M with all the jquery-ui supporting files): http://github.com/lsiden/locator_dialog/tree/3bacfeba06ea4e52c99b6d1f8181e49a89910838.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | index.html added |
---|
comment:1 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The close option works. If you need help for your specific use case, please ask on the mailing list.
comment:2 Changed 12 years ago by
Component: | ui.core → ui.dialog |
---|
The unsuccessful 'close' event handler is on line 33. The successful one is on line 39.