From 15c97e0b76b4576d0c7bee9d54dc4662c23502b9 Mon Sep 17 00:00:00 2001 From: Douglas Neiner Date: Wed, 2 Mar 2011 12:52:21 -0500 Subject: 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 --- ui/jquery.ui.dialog.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/jquery.ui.dialog.js') 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" ); } }, -- cgit v1.2.3