From: Max Schnur Date: Mon, 20 Dec 2010 14:00:28 +0000 (-0500) Subject: Dialog: Modified close button binding to use event.preventDefault() instead of return... X-Git-Tag: 1.9m4~89 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=727d00dec81671f26a15596acfb0df38920071a1;p=jquery-ui.git Dialog: Modified close button binding to use event.preventDefault() instead of return false. Fixes #6766 - Dialog: Clicks on close button don't bubble. --- diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index da57ae984..501772eb5 100644 --- a/ui/jquery.ui.dialog.js +++ b/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 ),