Skip to content
Permalink
Browse files

Dialog: Modified close button binding to use event.preventDefault() i…

…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 727d00dec81671f26a15596acfb0df38920071a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.dialog.js
@@ -140,8 +140,8 @@ $.widget("ui.dialog", {
uiDialogTitlebarClose.removeClass( "ui-state-focus" );
})
.click(function( event ) {
event.preventDefault();
self.close( event );
return false;
})
.appendTo( uiDialogTitlebar ),

0 comments on commit 727d00d

Please sign in to comment.
You can’t perform that action at this time.