Skip to main content

Search and Top Navigation

#7998 closed enhancement (wontfix)

Opened January 09, 2012 12:07PM UTC

Closed January 09, 2012 01:15PM UTC

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'); }}

Attachments (0)
Change History (1)

Changed January 09, 2012 01:15PM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

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