]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Modified close button binding to use event.preventDefault() instead of return...
authorMax Schnur <max.schnur@gmail.com>
Mon, 20 Dec 2010 14:00:28 +0000 (09:00 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 20 Dec 2010 14:00:28 +0000 (09:00 -0500)
ui/jquery.ui.dialog.js

index da57ae984331bc50007210da86a8fff7b0447629..501772eb57b7933c6bfc05643eac559163723640 100644 (file)
@@ -140,8 +140,8 @@ $.widget("ui.dialog", {
                                        uiDialogTitlebarClose.removeClass( "ui-state-focus" );
                                })
                                .click(function( event ) {
+                                       event.preventDefault();
                                        self.close( event );
-                                       return false;
                                })
                                .appendTo( uiDialogTitlebar ),