aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-29 20:56:28 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-29 20:56:28 -0400
commit61e0aeac7e626df711e7066f27b652602387b784 (patch)
tree7c9740d8542f472f8be5d8336fec5b3667288526 /ui/jquery.ui.dialog.js
parentf00c03139bf83e573b60376a146ae4584c5f5d17 (diff)
downloadjquery-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.js7
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();
}