Skip to content

Commit

Permalink
Dialog: Modified close button binding to use event.preventDefault() i…
Browse files Browse the repository at this point in the history
…nstead of return false. Fixes #6766 - Dialog: Clicks on close button don't bubble.
  • Loading branch information
MaxPower15 authored and scottgonzalez committed Dec 20, 2010
1 parent e104f6c commit 727d00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.dialog.js
Expand Up @@ -140,8 +140,8 @@ $.widget("ui.dialog", {
uiDialogTitlebarClose.removeClass( "ui-state-focus" );
})
.click(function( event ) {
event.preventDefault();
self.close( event );
return false;
})
.appendTo( uiDialogTitlebar ),

Expand Down

0 comments on commit 727d00d

Please sign in to comment.