From 727d00dec81671f26a15596acfb0df38920071a1 Mon Sep 17 00:00:00 2001 From: Max Schnur Date: Mon, 20 Dec 2010 09:00:28 -0500 Subject: [PATCH] Dialog: Modified close button binding to use event.preventDefault() instead of return false. Fixes #6766 - Dialog: Clicks on close button don't bubble. --- ui/jquery.ui.dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ), -- 2.39.5