diff options
author | Douglas Neiner <doug@pixelgraphics.us> | 2011-03-02 12:52:21 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-03-03 09:37:16 -0500 |
commit | 15c97e0b76b4576d0c7bee9d54dc4662c23502b9 (patch) | |
tree | ad1b0605c342c93193607876faa2073c900c5a33 /ui | |
parent | 5c6afa8e7bcf0b7111245ad703d28cfcefc1d59f (diff) | |
download | jquery-ui-15c97e0b76b4576d0c7bee9d54dc4662c23502b9.tar.gz jquery-ui-15c97e0b76b4576d0c7bee9d54dc4662c23502b9.zip |
Dialog: Added a class to dialog wrapper when it is currently displaying buttons, includes unit tests for changes. Fixed #7057 - An extra class is needed on the dialog wrapper to specify when a buttonset is showing
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 0183dd801..493783896 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -353,7 +353,10 @@ $.widget("ui.dialog", { button.button(); } }); + self.uiDialog.addClass( "ui-dialog-buttons" ); uiDialogButtonPane.appendTo( self.uiDialog ); + } else { + self.uiDialog.removeClass( "ui-dialog-buttons" ); } }, |