diff options
author | Max Schnur <max.schnur@gmail.com> | 2010-12-20 09:00:28 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-12-20 09:00:28 -0500 |
commit | 727d00dec81671f26a15596acfb0df38920071a1 (patch) | |
tree | dc1b30982a21761f86e3d7f0faa1dee0b48d57d1 /ui/jquery.ui.dialog.js | |
parent | e104f6cfa0324f9625c6258bb87f708d7c35d7bd (diff) | |
download | jquery-ui-727d00dec81671f26a15596acfb0df38920071a1.tar.gz jquery-ui-727d00dec81671f26a15596acfb0df38920071a1.zip |
Dialog: Modified close button binding to use event.preventDefault() instead of return false. Fixes #6766 - Dialog: Clicks on close button don't bubble.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ), |