diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-29 20:56:28 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-29 20:56:28 -0400 |
commit | 61e0aeac7e626df711e7066f27b652602387b784 (patch) | |
tree | 7c9740d8542f472f8be5d8336fec5b3667288526 /ui/jquery.ui.dialog.js | |
parent | f00c03139bf83e573b60376a146ae4584c5f5d17 (diff) | |
download | jquery-ui-61e0aeac7e626df711e7066f27b652602387b784.tar.gz jquery-ui-61e0aeac7e626df711e7066f27b652602387b784.zip |
Dialog: Wrap buttons in a div so we can float the div instead of the individual buttons. Fixes #4529 - dialog buttons are accessed in wrong order using tab.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index ae96b2d8b..df11e2190 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -342,7 +342,10 @@ $.widget("ui.dialog", { 'ui-dialog-buttonpane ' + 'ui-widget-content ' + 'ui-helper-clearfix' - ); + ), + uiButtonSet = $( "<div></div>" ) + .addClass( "ui-dialog-buttonset" ) + .appendTo( uiDialogButtonPane ); // if we already have a button pane, remove it self.uiDialog.find('.ui-dialog-buttonpane').remove(); @@ -357,7 +360,7 @@ $.widget("ui.dialog", { var button = $('<button type="button"></button>') .text(name) .click(function() { fn.apply(self.element[0], arguments); }) - .appendTo(uiDialogButtonPane); + .appendTo(uiButtonSet); if ($.fn.button) { button.button(); } |