Beat you to it ;) This was added to the SVN version in December and will be in the next UI release:
http://dev.jquery.com/view/trunk/ui/current/ui.dialog.js - Richard On Jan 8, 2008 10:31 PM, Jason Levine <[EMAIL PROTECTED]> wrote: > > > Thanks. It always seems to be the simple stuff that gives me the most > trouble! > > As a side note, I found myself needing a feature that the UI Dialog script > didn't support, so I added it. It's the ability to specify a function to > be > run when the dialog closes. To accomplish this, I changed the following > lines in ui.dialog.js: > > line 37: resize: true, > Became: > resize: true, > onClose: function() { }, > > line 78: self.close(); > Became: > self.close(); > options.onClose(); > > and line 132: $.data(el, "ui-dialog").close(); > Became: > $.data(el, "ui-dialog").close(); > options.onClose(); > > With these changes I can call: > > $("#example").dialog({ > onClose: function() { > // some code > } > }); > > And have the "some code" function run after the dialog is closed. > -- > View this message in context: > http://www.nabble.com/JQuery-UI-Dialog-not-working-tp14692149s27240p14704599.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com > . > >