Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#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)

index.html (3.5 KB) - added by lsiden 10 years ago.
The unsuccessful 'close' event handler is on line 33. The successful one is on line 39.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by lsiden

Attachment: index.html added

The unsuccessful 'close' event handler is on line 33. The successful one is on line 39.

comment:1 Changed 10 years ago by Scott González

Resolution: worksforme
Status: newclosed

The close option works. If you need help for your specific use case, please ask on the mailing list.

comment:2 Changed 10 years ago by Scott González

Component: ui.coreui.dialog

comment:3 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.