aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDouglas Neiner <doug@pixelgraphics.us>2011-03-02 12:52:21 -0500
committerScott González <scott.gonzalez@gmail.com>2011-03-03 09:37:16 -0500
commit15c97e0b76b4576d0c7bee9d54dc4662c23502b9 (patch)
treead1b0605c342c93193607876faa2073c900c5a33 /ui
parent5c6afa8e7bcf0b7111245ad703d28cfcefc1d59f (diff)
downloadjquery-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.js3
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" );
}
},