Ticket #3718 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 6 years ago by scott.gonzalez

  • Priority changed from minor to major
  • Milestone changed from TBD to 1.6

comment:2 Changed 6 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1854.

Note: See TracTickets for help on using tickets.