Dialog: Modified close button binding to use event.preventDefault() instead of return false. Fixes #6766 - Dialog: Clicks on close button don't bubble.

This commit is contained in:
Max Schnur 2010-12-20 09:00:28 -05:00 committed by Scott González
parent e104f6cfa0
commit 727d00dec8

View File

@ -140,8 +140,8 @@ $.widget("ui.dialog", {
uiDialogTitlebarClose.removeClass( "ui-state-focus" );
})
.click(function( event ) {
event.preventDefault();
self.close( event );
return false;
})
.appendTo( uiDialogTitlebar ),