Skip to main content

Search and Top Navigation

#3718 closed bug (fixed)

Opened December 31, 2008 10:14PM UTC

Closed January 29, 2009 02:08PM UTC

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

}

});

Attachments (0)
Change History (2)

Changed January 02, 2009 04:34AM UTC by scottgonzalez comment:1

milestone: TBD1.6
priority: minormajor

Changed January 29, 2009 02:08PM UTC by paul comment:2

resolution: → fixed
status: newclosed

Fixed in r1854.