Opened 8 years ago

Closed 8 years ago

#7998 closed enhancement (wontfix)

Allow event name in dialog buttons "click"

Reported by: AlexW Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

Description

Allow the use of an event name in the click property.

$('#dialog') .bind('dialogevent', function() {}) .dialog({

buttons: [

{text: 'Button', click: 'event'}

]

});

instead of needing to do,

{text: 'Button', click: function() { $(this).trigger('dialogevent'); }}

Change History (1)

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

Resolution: wontfix
Status: newclosed

This proposal doesn't even make sense. You want strings to be converted to events? Use a named function.

Note: See TracTickets for help on using tickets.