No, by definition a callback is a single function.

On Oct 14, 4:35 am, Nerlaleph <[email protected]> wrote:
>         I'm working with a jQuery UI dialog and I wish to change the defaults
> settings. I do that with the code:
>         $.extend($.ui.dialog.defaults, {
>                 resizable : false,
>                 draggable : false,
>                 modal     : true,
>                 close     : function() {
>                         alert('close');
>                 }
>         });
>         That's fine, but lets take a single dialog instance, and wish to add
> a close event to default event.
>         The only way I find is:
>         $( 'form.ui-chart-dialog' ).dialog({
>                                 width           : 600,
>                                 height          : 420
>                         }).bind('dialogclose', function(event, ui) {
>                                         alert('hey');
>                         })
>         Now when I close the dialog, I recive an alert 'hey', than an alert
> 'close', as we expected.
>
>         My problem is that I find the "bind" method a little too verbose. Is
> there any way to use the "close: function()" adding the two events?
>         Thank you, I hope that my horrible English will be understandable.
>         Davide
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to