Opened 14 years ago

Closed 14 years ago

#3718 closed bug (fixed)

Close function isn't passed ev.keycode or others

Reported by: mdenyse Owned by:
Priority: major Milestone: 1.7
Component: ui.dialog Version: 1.6rc2
Keywords: Close Function Keycode Cc:
Blocked by: Blocking:

Description

I was asked to submit this as a bug (re: post http://groups.google.com/group/jquery-ui/browse_thread/thread/fd92c912b9e80a9b?tvc=2)

My close function does not have ev.kecode filled in or many other parameters, so there's no way to determine the keycode without using other means.


Sample code:

$('<div>Hi there!</div>').dialog({

title: 'My Title',
modal: true,
buttons: {

'OK': function() { $(this).dialog('destroy'); },
'Cancel': function() { $(this).dialog('destroy'); },

},
close:

function(ev, ui) {

$(this).dialog('destroy');

}

});

Change History (2)

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

Milestone: TBD1.6
Priority: minormajor

comment:2 Changed 14 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in r1854.

Note: See TracTickets for help on using tickets.