aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorMax Schnur <max.schnur@gmail.com>2010-12-20 09:00:28 -0500
committerScott González <scott.gonzalez@gmail.com>2010-12-20 09:00:28 -0500
commit727d00dec81671f26a15596acfb0df38920071a1 (patch)
treedc1b30982a21761f86e3d7f0faa1dee0b48d57d1 /ui/jquery.ui.dialog.js
parente104f6cfa0324f9625c6258bb87f708d7c35d7bd (diff)
downloadjquery-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.js2
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 ),